EdgeInsets class

Available extensions

Constructors

EdgeInsets(double value)
Creates insets where all the offsets are value.
const
EdgeInsets.all(double value)
const
EdgeInsets.bottom(double value)
Bottom only
const
EdgeInsets.fromJson(Map<String, dynamic> json)
Create EdgeInsets from JSON
factory
EdgeInsets.fromLTRB(double left, double top, double right, double bottom)
const
EdgeInsets.horizontal(double horizontal, {double vertical = 0.0})
Horizontal insets
factory
EdgeInsets.horizontalLeftRight(double left, double right)
Left and right
const
EdgeInsets.left(double value)
Left only
const
EdgeInsets.only({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0})
const
EdgeInsets.right(double value)
Right only
const
EdgeInsets.symmetric({double vertical = 0.0, double horizontal = 0.0})
const
EdgeInsets.top(double value)
Top only
const
EdgeInsets.vertical(double vertical, {double horizontal = 0.0})
Vertical insets
factory
EdgeInsets.verticalTopBottom(double top, double bottom)
Top and bottom
const
EdgeInsets.zero()
const

Properties

bottom double
final
hashCode int
The hash code for this object.
no setteroverride
horizontal double
Returns the total offset along the horizontal axis.
no setter
isNonNegative bool
Whether every dimension is non-negative.
no setter
left double
final
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
Returns the total offset in both axes as a Size.
no setter
top double
final
vertical double
Returns the total offset along the vertical axis.
no setter

Methods

add(EdgeInsets other) EdgeInsets
Returns the insets with the given offsets added to the corresponding directions.
difference(EdgeInsets other) EdgeInsets
Returns the difference between two EdgeInstes
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale(double factor) EdgeInsets
Returns a new EdgeInsets with the dimensions scaled by the given factor.
subtract(EdgeInsets other) EdgeInsets
Returns the insets with the given offsets subtracted from the corresponding directions.
toCss() String
Convert to CSS string for HTML output
toJson() Map<String, dynamic>
Convert to JSON for serialization
toString() String
A string representation of this object.
override

Operators

operator *(double factor) EdgeInsets

Available on EdgeInsets, provided by the EdgeInsetsOperators extension

operator +(EdgeInsets other) EdgeInsets

Available on EdgeInsets, provided by the EdgeInsetsOperators extension

operator -(EdgeInsets other) EdgeInsets

Available on EdgeInsets, provided by the EdgeInsetsOperators extension

operator ==(Object other) bool
The equality operator.
override

Static Methods

lerp(EdgeInsets? a, EdgeInsets? b, double t) EdgeInsets?
Linearly interpolate between two EdgeInstes