EdgeInsetsAxisUtil extension
Extension on EdgeInsets that provides various directional utilities.
- on
Methods
-
directionExtent(
AxisDirection direction) → double -
Gets the extent of the inset facing
direction
.
Static Methods
-
create(
Axis axis, {double mainBegin = 0.0, double mainEnd = 0.0, double crossBegin = 0.0, double crossEnd = 0.0}) → EdgeInsets - Creates edge insets given the begin and end extents on the given axis.
-
direction(
AxisDirection direction, {double mainBegin = 0.0, double mainEnd = 0.0, double crossBegin = 0.0, double crossEnd = 0.0}) → EdgeInsets -
Creates edge insets towards
direction
. -
symmetric(
Axis axis, {double main = 0.0, double cross = 0.0}) → EdgeInsets - Creates symmetric edge insets on the given axis.