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