Media class

A class that provides information about the media and device dimensions.

Constructors

Media()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Properties

deviceType DeviceType
getter/setter pair
height double
getter/setter pair
image double
getter/setter pair
orientation OrientationType
getter/setter pair
screenHeight double
getter/setter pair
screenWidth double
getter/setter pair
text double
getter/setter pair
width double
getter/setter pair

Static Methods

init(BoxConstraints constraints, Orientation orientation, double breakpointMobile, double breakpointTablet) → void
Initializes the Media class with the given constraints and orientation. Calculates the screen width, screen height, orientation, and device type based on the constraints and breakpoints.