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