update static method

void update(
  1. BuildContext context,
  2. GalleryOptions newModel
)

Implementation

static void update(BuildContext context, GalleryOptions newModel) {
  final scope =
      context.dependOnInheritedWidgetOfExactType<_ModelBindingScope>()!;
  scope.modelBindingState.updateModel(newModel);
}