of static method

Get the InheritedWidget's state in the tree

Implementation

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