of<T> static method

Implementation

static ToastListOverlayState of<T>(BuildContext context) {
  assert(debugCheckHasToastListOverlay<T>(context));

  final _ToastListScope scope =
      context.dependOnInheritedWidgetOfExactType<_ToastListScope>()!;
  return scope._toastListOverlayState;
}