EdgeInsetsAxisUtil extension

Extension on EdgeInsets that provides various directional utilities.

on

Methods

directionExtent(AxisDirection direction) → double

Available on EdgeInsets, provided by the EdgeInsetsAxisUtil extension

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

Available on EdgeInsets, provided by the EdgeInsetsAxisUtil extension

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

Available on EdgeInsets, provided by the EdgeInsetsAxisUtil extension

Creates edge insets towards direction.
symmetric(Axis axis, {double main = 0.0, double cross = 0.0}) → EdgeInsets

Available on EdgeInsets, provided by the EdgeInsetsAxisUtil extension

Creates symmetric edge insets on the given axis.