of<T> static method
Gets the current state from the BuildContext
Implementation
static StateHolder<T> of<T>(BuildContext context) {
final result = context.dependOnInheritedWidgetOfExactType<StateHolder<T>>();
assert(result != null, 'No state of type $T found in context');
return result!;
}