maybeOf static method
Returns the closest EasyFormDefaultSettings which encloses the given context.
Returns null if there is no EasyFormDefaultSettings associated with the given context.
Calling this method will create a dependency on the closest EasyFormDefaultSettings in the context, if there is one.
Implementation
static EasyFormDefaultSettings? maybeOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<EasyFormDefaultSettings>();
}