AxisSize class final

Sizing along one axis. value is the design size: the size for SizeFit.fixed, and the fallback whenever a mode can't apply. JSON: a number (fixed) or {"fill"|"flexible"|"hug": value}.

Annotations
  • @immutable

Constructors

AxisSize(SizeFit fit, double value)
const
AxisSize.fill(double value)
const
AxisSize.fixed(double value)
const
AxisSize.hug(double value)
const

Properties

fit → SizeFit
final
hashCode → int
The hash code for this object.
no setteroverride
isFill → bool
no setter
isFixed → bool
no setter
isFlex → bool
Takes part in flex distribution (fill or flexible).
no setter
isFlexible → bool
no setter
isHug → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Object
toString() → String
A string representation of this object.
override
withFit(SizeFit f) → AxisSize
withValue(double v) → AxisSize

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Object? json, {double fallback = 0}) → AxisSize