isEnabledOf static method
- BuildContext context
Returns the nearest shared skeleton state, or false without a provider.
Implementation
static bool isEnabledOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<_SkeletonScope>()
?.enabled ??
false;
}