of static method

Gets the controller from context.

Implementation

static SkeletonController? of(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<SkeletonControllerProvider>()
      ?.notifier;
}