hasScope static method

bool hasScope(
  1. BuildContext context
)

Returns true if there's a UIProShimmerScope ancestor.

Implementation

static bool hasScope(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<UIProShimmerScope>() !=
      null;
}