DeviceInfo class
A class to retrieve device-related information such as device type, IP address, operating system, and screen size.
Constructors
Properties
- deviceInfoPlugin → DeviceInfoPlugin
-
An instance of
DeviceInfoPluginused to retrieve information about the device.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDeviceScreenSize(
) → Future< String> - Retrieves the screen size of the device.
-
getDeviceType(
) → Future< String> - Retrieves the type of the device.
-
getIpAddress(
) → Future< String> - Retrieves the public IP address of the device.
-
getOperatingSystem(
) → Future< String> - Retrieves the operating system of the device.
-
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