ScreenOrientation class

The interface of the Screen Orientation API provides information about the current orientation of the document. A instance object can be retrieved using the screen.orientation property.

EventTarget

ScreenOrientation

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

ScreenOrientation()
factory

Properties

angle int

Available on ScreenOrientation, provided by the PropsScreenOrientation extension

no setter
hashCode int
The hash code for this object.
no setterinherited
onchange EventHandlerNonNull<Event>?

Available on ScreenOrientation, provided by the PropsScreenOrientation extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type OrientationType

Available on ScreenOrientation, provided by the PropsScreenOrientation extension

no setter

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

lock(OrientationLockType orientation) Future<void>

Available on ScreenOrientation, provided by the PropsScreenOrientation extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

toString() String
A string representation of this object.
inherited
unlock() → void

Available on ScreenOrientation, provided by the PropsScreenOrientation extension

Operators

operator ==(Object other) bool
The equality operator.
inherited