AxisSize class abstract
A cross-axis size for a drawer/sheet container, resolved against the available cross-axis extent. Used by DrawerContainer/SheetContainer to size the sheet so it doesn't stretch edge-to-edge.
Supports arithmetic: AxisSize.fraction(0.5) + AxisSize.fixed(40),
AxisSize.fixed(400) * 0.5, etc.
Constructors
- AxisSize()
-
Const constructor for subclasses.
const
- AxisSize.fixed(double size)
-
A fixed number of logical pixels.
constfactory
- AxisSize.fraction(double fraction)
-
A
fraction(0..1) of the available cross-axis extent.constfactory
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
-
resolve(
double available) → double -
Resolves this size against the
availablecross-axis extent. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator *(
double factor) → AxisSize -
Scales this size by
factor. -
operator +(
AxisSize other) → AxisSize - Sum of two sizes.
-
operator -(
AxisSize other) → AxisSize - Difference of two sizes.
-
operator /(
double factor) → AxisSize -
Divides this size by
factor. -
operator ==(
Object other) → bool -
The equality operator.
inherited