maybeOf static method

MixData? maybeOf(
  1. BuildContext context
)

Retrieves the nearest MixData from the widget tree. Returns null if not found.

Implementation

static MixData? maybeOf(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<Mix>()?.data;
}