maybeOf static method
Retrieves the nearest MixData from the widget tree. Returns null if not found.
Implementation
static MixData? maybeOf(BuildContext context) {
return context.dependOnInheritedWidgetOfExactType<Mix>()?.data;
}
Retrieves the nearest MixData from the widget tree. Returns null if not found.
static MixData? maybeOf(BuildContext context) {
return context.dependOnInheritedWidgetOfExactType<Mix>()?.data;
}