of static method

ModalProvider of(
  1. BuildContext context
)

Implementation

static ModalProvider of(BuildContext context) {
  final ModalProvider? result = maybeOf(context);
  assert(result != null, 'No ModalProvider found in context');
  return result!;
}