WidgetDimensions class

Value object containing widget dimensions.

Provides width and height values for widgets on different device types.

Constructors

WidgetDimensions({required double width, required double height})
Creates a new WidgetDimensions instance.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
height double
Height of the widget in points.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
Width of the widget in points.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, double>
Converts this WidgetDimensions to a map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

forIPad(WidgetSize size) WidgetDimensions
Gets dimensions for a widget size on iPad.
forIPhone(WidgetSize size) WidgetDimensions
Gets dimensions for a widget size on iPhone.