of method

T of(
  1. BuildContext? context
)

Get the value held by this state, and also rebuild the widget in context whenever mutate is called.

Implementation

T of(BuildContext? context) {
  if (context != null) {
    InheritedModel.inheritFrom<SharedValueInheritedModel>(
      context,
      aspect: this,
    );
  }
  return _value;
}