of static method

Returns the nearest updater inherited notifier.

Implementation

static DesktopUpdaterInheritedNotifier of(BuildContext context) {
  final notifier = maybeOf(context);
  assert(
    notifier != null,
    "No DesktopUpdaterInheritedNotifier found in context.",
  );
  return notifier!;
}