maybeOf static method

Returns the nearest updater inherited notifier, if one exists.

Implementation

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