of static method
Returns the nearest MinFloatingDefaults in the tree.
Falls back to MiniFloatingDefaults() if none is found.
Implementation
static MinFloatingDefaults of(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<MinFloatingConfig>()
?.defaults ??
const MinFloatingDefaults();
}