of static method

bool of(
  1. BuildContext context
)

Gets the shimmer loading state from context. Returns false if no UIProShimmerScope is found.

Implementation

static bool of(BuildContext context) {
  final scope =
      context.dependOnInheritedWidgetOfExactType<UIProShimmerScope>();
  return scope?.isLoading ?? false;
}