FluentEdgeInsets class
Fluent EdgeInsets class that extends EdgeInsets and supports chaining
- Inheritance
-
- Object
- EdgeInsetsGeometry
- EdgeInsets
- FluentEdgeInsets
- Available extensions
Properties
- bottom → double
-
The offset from the bottom.
finalinherited
- bottom → EdgeInsetsGeometry
-
Available on EdgeInsetsGeometry, provided by the EdgeInsetsGeometryChaining extension
Adds bottom padding to existing EdgeInsetsGeometry (chainable)no setter - bottomLeft → Offset
-
An Offset describing the vector from the bottom left of a rectangle to the
bottom left of that rectangle inset by this object.
no setterinherited
- bottomPad → FluentEdgeInsets
-
no setter
- bottomPad → EdgeInsets
-
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
no setter - bottomRight → Offset
-
An Offset describing the vector from the bottom right of a rectangle to the
bottom right of that rectangle inset by this object.
no setterinherited
- collapsedSize → Size
-
The size that this EdgeInsets would occupy with an empty interior.
no setterinherited
- flipped → EdgeInsets
-
An EdgeInsets with top and bottom as well as left and right flipped.
no setterinherited
- geometry → EdgeInsetsGeometry
-
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
Allows implicit conversion to EdgeInsetsGeometryno setter - 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
- left → double
-
The offset from the left.
finalinherited
- left → EdgeInsetsGeometry
-
Available on EdgeInsetsGeometry, provided by the EdgeInsetsGeometryChaining extension
Adds left padding to existing EdgeInsetsGeometry (chainable)no setter - leftPad → FluentEdgeInsets
-
Chainable getters that use next value from tuple
no setter
- leftPad → EdgeInsets
-
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
Chainable padding extensions that use the first non-zero padding value as baseno setter - right → double
-
The offset from the right.
finalinherited
- right → EdgeInsetsGeometry
-
Available on EdgeInsetsGeometry, provided by the EdgeInsetsGeometryChaining extension
Adds right padding to existing EdgeInsetsGeometry (chainable)no setter - rightPad → FluentEdgeInsets
-
no setter
- rightPad → EdgeInsets
-
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → double
-
The offset from the top.
finalinherited
- top → EdgeInsetsGeometry
-
Available on EdgeInsetsGeometry, provided by the EdgeInsetsGeometryChaining extension
Adds top padding to existing EdgeInsetsGeometry (chainable)no setter - topLeft → Offset
-
An Offset describing the vector from the top left of a rectangle to the
top left of that rectangle inset by this object.
no setterinherited
- topPad → FluentEdgeInsets
-
no setter
- topPad → EdgeInsets
-
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
no setter - topRight → Offset
-
An Offset describing the vector from the top right of a rectangle to the
top right of that rectangle inset by this object.
no setterinherited
- vertical → double
-
The total offset in the vertical direction.
no setterinherited
Methods
-
add(
EdgeInsetsGeometry other) → EdgeInsetsGeometry -
Returns the sum of two EdgeInsetsGeometry objects.
inherited
-
addBottom(
double value) → EdgeInsetsGeometry -
Available on EdgeInsetsGeometry, provided by the EdgeInsetsGeometryChaining extension
Adds bottom padding to existing EdgeInsetsGeometry -
addHorizontal(
double value) → EdgeInsetsGeometry -
Available on EdgeInsetsGeometry, provided by the EdgeInsetsGeometryChaining extension
Adds horizontal padding to existing EdgeInsetsGeometry -
addLeft(
double value) → EdgeInsetsGeometry -
Available on EdgeInsetsGeometry, provided by the EdgeInsetsGeometryChaining extension
Adds left padding to existing EdgeInsetsGeometry -
addRight(
double value) → EdgeInsetsGeometry -
Available on EdgeInsetsGeometry, provided by the EdgeInsetsGeometryChaining extension
Adds right padding to existing EdgeInsetsGeometry -
addToBottom(
double value) → EdgeInsets -
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
Adds the specified value to the existing bottom padding -
addToLeft(
double value) → EdgeInsets -
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
Adds the specified value to the existing left padding -
addTop(
double value) → EdgeInsetsGeometry -
Available on EdgeInsetsGeometry, provided by the EdgeInsetsGeometryChaining extension
Adds top padding to existing EdgeInsetsGeometry -
addToRight(
double value) → EdgeInsets -
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
Adds the specified value to the existing right padding -
addToTop(
double value) → EdgeInsets -
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
Adds the specified value to the existing top padding -
addVertical(
double value) → EdgeInsetsGeometry -
Available on EdgeInsetsGeometry, provided by the EdgeInsetsGeometryChaining extension
Adds vertical padding to existing EdgeInsetsGeometry -
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? left, double? top, double? right, double? bottom}) → EdgeInsets -
Creates a copy of this EdgeInsets but with the given fields replaced
with the new values.
inherited
-
deflateRect(
Rect rect) → Rect -
Returns a new rect that is smaller than the given rect in each direction by
the amount of inset in each direction. Specifically, the left edge of the
rect is moved right by left, the top edge of the rect is moved down by
top, the right edge of the rect is moved left by right, and the
bottom edge of the rect is moved up by bottom.
inherited
-
deflateRRect(
RRect rect) → RRect -
Returns a new RRect shrunk by this EdgeInsets, decreasing each corner's
radius by the corresponding per-axis inset amounts (clamped at zero).
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
-
inflateRect(
Rect rect) → Rect -
Returns a new rect that is bigger than the given rect in each direction by
the amount of inset in each direction. Specifically, the left edge of the
rect is moved left by left, the top edge of the rect is moved up by
top, the right edge of the rect is moved right by right, and the
bottom edge of the rect is moved down by bottom.
inherited
-
inflateRRect(
RRect rect) → RRect -
Returns a new RRect expanded by this EdgeInsets, increasing each corner's
radius by the corresponding per-axis inset amounts (clamped at zero).
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
leftcoordinate being explicitly a distance from the left, and therightcoordinate 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
-
tweenTo(
EdgeInsetsGeometry end) → EdgeInsetsGeometryTween -
Available on EdgeInsetsGeometry, provided by the EdgeInsetsGeometryX extension
Create an EdgeInsetsGeometryTween form this value to the provided end value -
withBottom(
double value) → EdgeInsets -
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
Creates new EdgeInsets with specified bottom padding -
withLeft(
double value) → EdgeInsets -
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
Creates new EdgeInsets with specified left padding -
withRight(
double value) → EdgeInsets -
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
Creates new EdgeInsets with specified right padding -
withTop(
double value) → EdgeInsets -
Available on EdgeInsets, provided by the EdgeInsetsChaining extension
Creates new EdgeInsets with specified top padding
Operators
-
operator %(
double other) → EdgeInsets -
Computes the remainder in each dimension by the given factor.
inherited
-
operator *(
double other) → EdgeInsets -
Scales the EdgeInsets in each dimension by the given factor.
inherited
-
operator +(
EdgeInsets other) → EdgeInsets -
Returns the sum of two EdgeInsets.
inherited
-
operator -(
EdgeInsets other) → EdgeInsets -
Returns the difference between two EdgeInsets.
inherited
-
operator /(
double other) → EdgeInsets -
Divides the EdgeInsets in each dimension by the given factor.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → EdgeInsets -
Returns the EdgeInsets object with each dimension negated.
inherited
-
operator ~/(
double other) → EdgeInsets -
Integer divides the EdgeInsets in each dimension by the given factor.
inherited