DeviceOrientationChangedEvent class
The DeviceOrientationChangedEvent is fired every time the orientation of the device UI changes.
- Inheritance
-
- Object
- DeviceEvent
- DeviceOrientationChangedEvent
Constructors
- DeviceOrientationChangedEvent(DeviceOrientation orientation)
-
Build a new orientation changed event.
const
-
DeviceOrientationChangedEvent.fromJson(Map<
String, dynamic> json) - Converts the supplied Map to an instance of the DeviceOrientationChangedEvent class.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- orientation → DeviceOrientation
-
The new orientation of the device
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the DeviceOrientationChangedEvent instance into a Map instance that can be serialized to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override