maybeOf<T> static method

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

Implementation

static T? maybeOf<T>(BuildContext context) {
  final nop = context.dependOnInheritedWidgetOfExactType<_NopScoop>();
  return nop?.state.getType<T>();
}