of static method

GalleryOptions? of(
  1. BuildContext context
)

Implementation

static GalleryOptions? of(BuildContext context) {
  final scope =
      context.dependOnInheritedWidgetOfExactType<_ModelBindingScope>()!;
  return scope.modelBindingState.currentModel;
}