ArnaEdgeInsets class
An immutable set of offsets in each of the four cardinal directions.
- Inheritance
-
- Object
- EdgeInsetsGeometry
- EdgeInsetsDirectional
- ArnaEdgeInsets
Constructors
- ArnaEdgeInsets.all(double value)
-
Creates insets where all the offsets are
value
.const - ArnaEdgeInsets.bottom(double amount)
-
Creates insets with only the bottom value non-zero.
const
- ArnaEdgeInsets.eb(double end, double bottom)
-
Creates insets with only the end and bottom values non-zero.
const
- ArnaEdgeInsets.end(double amount)
-
Creates insets with only the end value non-zero.
const
- ArnaEdgeInsets.horizontal(double amount)
-
Creates insets with horizontal offsets.
const
- ArnaEdgeInsets.sb(double start, double bottom)
-
Creates insets with only the start and bottom values non-zero.
const
- ArnaEdgeInsets.se(double start, double end)
-
Creates insets with only the start and end values non-zero.
const
- ArnaEdgeInsets.seb(double start, double end, double bottom)
-
Creates insets with only the start, end and bottom values non-zero.
const
- ArnaEdgeInsets.st(double start, double top)
-
Creates insets with only the start and top values non-zero.
const
- ArnaEdgeInsets.start(double amount)
-
Creates insets with only the start value non-zero.
const
- ArnaEdgeInsets.stb(double start, double top, double bottom)
-
Creates insets with only the start, top and bottom values non-zero.
const
- ArnaEdgeInsets.ste(double start, double top, double end)
-
Creates insets with only the start, top and end values non-zero.
const
- ArnaEdgeInsets.steb(double start, double top, double end, double bottom)
-
Creates insets from offsets from the start, top, end, and bottom.
const
- ArnaEdgeInsets.symmetric(double horizontal, double vertical)
-
Creates insets with symmetrical vertical and horizontal offsets.
const
- ArnaEdgeInsets.tb(double top, double bottom)
-
Creates insets with only the top and bottom values non-zero.
const
- ArnaEdgeInsets.te(double top, double end)
-
Creates insets with only the top and end values non-zero.
const
- ArnaEdgeInsets.teb(double top, double end, double bottom)
-
Creates insets with only the top, end and bottom values non-zero.
const
- ArnaEdgeInsets.top(double amount)
-
Creates insets with only the top value non-zero.
const
- ArnaEdgeInsets.vertical(double amount)
-
Creates insets with vertical offsets.
const
Properties
- bottom → double
-
The offset from the bottom.
finalinherited
- collapsedSize → Size
-
The size that this EdgeInsets would occupy with an empty interior.
no setterinherited
- end → double
-
The offset from the end side, the side on which the user ends reading
text.
finalinherited
- flipped → EdgeInsetsDirectional
-
An EdgeInsetsDirectional with top and bottom as well as start and end flipped.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontal → double
-
The total offset in the horizontal direction.
no setterinherited
- isNonNegative → bool
-
Whether every dimension is non-negative.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → double
-
The offset from the start side, the side from which the user will start
reading text.
finalinherited
- top → double
-
The offset from the top.
finalinherited
- vertical → double
-
The total offset in the vertical direction.
no setterinherited
Methods
-
add(
EdgeInsetsGeometry other) → EdgeInsetsGeometry -
Returns the sum of two EdgeInsetsGeometry objects.
inherited
-
along(
Axis axis) → double -
The total offset in the given direction.
inherited
-
clamp(
EdgeInsetsGeometry min, EdgeInsetsGeometry max) → EdgeInsetsGeometry -
Returns a new EdgeInsetsGeometry object with all values greater than
or equal to
min
, and less than or equal tomax
.inherited -
copyWith(
{double? start, double? top, double? end, double? bottom}) → EdgeInsetsDirectional -
Creates a copy of this EdgeInsetsDirectional but with the given
fields replaced with the new values.
inherited
-
deflateSize(
Size size) → Size -
Returns a new size that is smaller than the given size by the amount of
inset in the horizontal and vertical directions.
inherited
-
inflateSize(
Size size) → Size -
Returns a new size that is bigger than the given size by the amount of
inset in the horizontal and vertical directions.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
TextDirection? direction) → EdgeInsets -
Convert this instance into an EdgeInsets, which uses literal coordinates
(i.e. the
left
coordinate being explicitly a distance from the left, and theright
coordinate being explicitly a distance from the right).inherited -
subtract(
EdgeInsetsGeometry other) → EdgeInsetsGeometry -
Returns the difference between two EdgeInsetsGeometry objects.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator %(
double other) → EdgeInsetsDirectional -
Computes the remainder in each dimension by the given factor.
inherited
-
operator *(
double other) → EdgeInsetsDirectional -
Scales the EdgeInsetsDirectional object in each dimension by the given factor.
inherited
-
operator +(
EdgeInsetsDirectional other) → EdgeInsetsDirectional -
Returns the sum of two EdgeInsetsDirectional objects.
inherited
-
operator -(
EdgeInsetsDirectional other) → EdgeInsetsDirectional -
Returns the difference between two EdgeInsetsDirectional objects.
inherited
-
operator /(
double other) → EdgeInsetsDirectional -
Divides the EdgeInsetsDirectional object in each dimension by the given factor.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → EdgeInsetsDirectional -
Returns the EdgeInsetsDirectional object with each dimension negated.
inherited
-
operator ~/(
double other) → EdgeInsetsDirectional -
Integer divides the EdgeInsetsDirectional object in each dimension by the given factor.
inherited