DeviceInformation class
The DeviceInformationModel is used to retrieve basic information about the device, some of which are available via the Flutter SDK.
Constructors
- DeviceInformation({Orientation? orientation, DeviceTypeInformation? deviceTypeInformation, String? deviceOS, Brightness? platformBrightness, Size? parentWidgetSize, double? localWidgetWidth, double? localWidgetHeight})
- Constructor for this class
Properties
- deviceOS → String?
-
Used to determine the device platform
final
- deviceTypeInformation → DeviceTypeInformation?
-
Used to determine the device type in accordance with the DeviceTypeInformation enum
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- localWidgetHeight → double?
-
final
- localWidgetWidth → double?
-
Used to determined the size of a widget
final
- orientation → Orientation?
-
Used to determine whether the device is in Portrait or in Landscape Mode
final
- parentWidgetSize → Size?
-
Used to determine the size of a given widget's parent widget.
final
- platformBrightness → Brightness?
-
Used to determine the device's brightness.
On Windows devices with dark mode, the Platform Brightness is incorrectly indicated as
Brightness.light even with dark mode enabled on 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited