SizeAxisUtil extension
Extension on Size that provides various directional utilities.
- on
Methods
-
axisSize(
Axis axis) → double -
Available on Size, provided by the SizeAxisUtil extension
Gets the extent of this size on the given axis. -
crossAxisSize(
Axis axis) → double -
Available on Size, provided by the SizeAxisUtil extension
Gets the extent of this size crossing the given axis. -
rotateWithAxis(
Axis axis) → Size -
Available on Size, provided by the SizeAxisUtil extension
Rotates this size withaxis
wherewidth
becomes the cross axis extent andheight
becomes the main axis extent. -
rotateWithCrossAxis(
Axis crossAxis) → Size -
Available on Size, provided by the SizeAxisUtil extension
Rotates this size withcrossAxis
wherewidth
becomes the cross axis extent andheight
becomes the main axis extent.
Static Methods
-
create(
Axis axis, double cross, double main) → Size -
Available on Size, provided by the SizeAxisUtil extension
Creates a Size with the givencross
andmain
extents. -
crossFrom(
Axis axis, double extent) → Size -
Available on Size, provided by the SizeAxisUtil extension
Creates a Size with the given cross axisextent
and an infinite main axis extent. -
from(
Axis axis, double extent) → Size -
Available on Size, provided by the SizeAxisUtil extension
Creates a Size with the given main axisextent
and an infinite cross axis extent.