OkitoDevice mixin
This mixin provides informations about the device in an easier way.
The context is going to be provided by Okito, so we have to override this context.
Properties
- aspectRatio → double
-
The aspect ratio of this size.
no setter
- context → BuildContext?
-
The BuildContext:context of your app.
no setter
- devicePixelRatio → double
-
The number of device pixels for each logical pixel. This number might not
be a power of two. Indeed, it might not even be an integer. For example,
the Nexus 6 has a device pixel ratio of 3.5.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The vertical extent of this size.
no setter
- isAndroid → bool
-
Returns true if the device is android.
no setter
- isDarkMode → bool
-
App theme mode (if dark returns true, else false).
no setter
- isFuchsia → bool
-
Returns true if the device is fuchsia.
no setter
- isIOS → bool
-
Returns true if the device is iOS.
no setter
- isLandscape → bool
-
Whether device is wider than tall or not.
no setter
- isLinux → bool
-
Returns true if the device is linux.
no setter
- isMacOS → bool
-
Returns true if the device is macOS.
no setter
- isPortrait → bool
-
Whether device is taller than wide or not.
no setter
- isWindows → bool
-
Returns true if the device is windows.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → ThemeData
-
App theme.
no setter
- width → double
-
The horizontal extent of this size.
no setter
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