maybeOf<T extends ChangeNotifier> static method
Static method to get the MinProvider instance from the context, returning null if not found.
This method is useful when you want to optionally get the provider without throwing an error if the provider is not found in the context.
Implementation
static MinProvider<T>? maybeOf<T extends ChangeNotifier>(
BuildContext context) {
return context.dependOnInheritedWidgetOfExactType<MinProvider<T>>();
}