maybeOf static method

finds the possible nearest ToastificationConfigProvider in the upper tree

Implementation

static ToastificationConfigProvider? maybeOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<ToastificationConfigProvider>();
}