maybeOf<T> static method

T? maybeOf<T>(
  1. BuildContext context
)

Implementation

static T? maybeOf<T>(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<NiceProvider<T>>()?.value;
}