statusBar constant

OptionalMethodChannel const statusBar

An unidirectional JSON MethodChannel for receiving status bar related events from iOS.

The only method this channel receives is handleScrollToTop which is called on iOS when the user taps the status bar to scroll a scroll view to the top.

Typically you should not subscribe to this channel directly. The events are dispatched to registered WidgetsBindingObservers via the WidgetsBindingObserver.handleStatusBarTap callback.

See also:

Implementation

static const OptionalMethodChannel statusBar = OptionalMethodChannel(
  'flutter/status_bar',
  JSONMethodCodec(),
);