of<T extends Bloobit> static method

BloobitPropagator<T> of<T extends Bloobit>(
  1. BuildContext context
)

Gets the Bloobit from the widget tree

Implementation

static BloobitPropagator<T> of<T extends Bloobit<dynamic>>(
  BuildContext context,
) {
  final result =
      context.dependOnInheritedWidgetOfExactType<BloobitPropagator<T>>();
  assert(result != null, 'No Bloobit of type $T found in context');

  return result!;
}