Screen class
An object that gives some informations about device's screen.
See also:
- Available Extensions
Constructors
- Screen.fromContext(BuildContext context)
-
factory
- Screen.fromWindow()
-
factory
Properties
- breakpointData → BreakpointData
-
final
- designLanguage ↔ DesignLanguage
-
Design Language based on the PlatformType.
This field is obtained by getDefaultDesignLanguage.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- mediaQueryData → MediaQueryData
-
final
- platform ↔ PlatformType
-
Platform Type based on the TargetPlatform and the kIsWeb
This field is obtained by the getDefaultPlatform.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenSize ↔ ScreenSize
-
Screen Size based on screen width.
This field is obtained by
BreakpointData._getScreenSize
.latefinal - screenType ↔ ScreenType
-
Screen Type based on the screen width.
This field is obtained by
BreakpointData._getScreenType
.latefinal
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
Static Methods
-
of(
BuildContext context) → Screen