DeviceTypeConfig class

Configuration class for determining device types and design constraints.

This class encapsulates the logic for deciding if the current environment is a phone, tablet, or desktop based on the provided ScreenInfo.

Annotations

Constructors

DeviceTypeConfig({required ScreenInfo screenInfo, required double designMinWidth, required double designMaxWidth, required double designMinHeight, required double designMaxHeight, required TargetDeviceType targetDeviceType})
const

Properties

designMaxHeight → double
The maximum height used during the design phase.
final
designMaxWidth → double
The maximum width used during the design phase (usually for desktop).
final
designMinHeight → double
The minimum height used during the design phase.
final
designMinWidth → double
The minimum width used during the design phase (usually for mobile).
final
hashCode → int
The hash code for this object.
no setteroverride
isDesktop → bool
Returns true if the device screen width meets or exceeds the desktop breakpoint.
no setter
isMobileLandscape → bool
Returns true if the device is a phone in landscape orientation.
no setter
isMobilePortrait → bool
Returns true if the device is a phone in portrait orientation.
no setter
isTablet → bool
Returns true if the device is a tablet.
no setter
isTabletLandscape → bool
Returns true if the device is a tablet in landscape orientation.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screenInfo → ScreenInfo
The underlying screen information.
final
targetDeviceType → TargetDeviceType
The target device type this design was primarily built for.
final

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.
override