of<T> static method
Implementation
static T of<T>(BuildContext context) {
final provider =
context.dependOnInheritedWidgetOfExactType<PulseProvider<T>>();
assert(provider != null, 'No PulseProvider<$T> found in context');
return provider!.pulse as T;
}