Interface for classes that register with the Widgets layer binding.

See WidgetsBinding.addObserver and WidgetsBinding.removeObserver.

Constructors

WidgetsBindingObserver()

Properties

hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

didChangeAppLifecycleState(AppLifecycleState state) → void

Called when the system puts the app in the background or returns the app to the foreground.

didChangeLocale(Locale locale) → void

Called when the system tells the app that the user's locale has changed. For example, if the user changes the system language settings.

didChangeMetrics() → void

Called when the application's dimensions change. For example, when a phone is rotated.

didPopRoute() bool

Called when the system tells the app to pop the current route. For example, on Android, this is called when the user presses the back button.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited