isEnabledOf static method

bool isEnabledOf(
  1. 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;
}