Screen class Null safety

Constructors

Screen.of(BuildContext context, {bool? useSafeSize})
factory

Properties

context BuildContext
final
hashCode int
The hash code for this object. [...]
read-only, inherited
height double
read-only
isExtraLargeScreen bool
read-only
isExtraSmallScreen bool
read-only
isLandscape bool
read-only
isLargeScreen bool
read-only
isMediumScreen bool
read-only
isPortrait bool
read-only
isSmallScreen bool
read-only
mediaQueryData MediaQueryData
late, final
orientation Orientation
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
screenHeight double
The height of the media in logical pixels. MediaQuery.of(context).size.height
read-only
screenSize ScreenSize
read-only
screenWidth double
The width of the media in logical pixels. MediaQuery.of(context).size.width
read-only
width double
read-only

Methods

getScreenSize() ScreenSize
isL() bool
isM() bool
isS() bool
isXL() bool
isXS() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 Properties

largeWidth double
read / write
mediumWidth double
read / write
smallWidth double
read / write
xlargeWidth double
read / write