EdgeInsets class

Inheritance
Annotations
  • @immutable

Constructors

EdgeInsets.all(double value)
const
EdgeInsets.fromLTRB(double left, double top, double right, double bottom)
const
EdgeInsets.only({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0})
const
EdgeInsets.symmetric({double vertical = 0.0, double horizontal = 0.0})
const

Properties

bottom double
The offset from the bottom.
final
hashCode int
The hash code for this object.
no setterinherited
horizontal double
The total offset in the horizontal direction.
no setterinherited
left double
The offset from the left.
final
The offset from the right.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
top double
The offset from the top.
final
vertical double
The total offset in the vertical direction.
no setterinherited

Methods

add(EdgeInsetsGeometry other) EdgeInsetsGeometry
Returns the sum of two EdgeInsetsGeometry objects.
override
copyWith({double? left, double? top, double? right, double? bottom}) EdgeInsets
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 the right coordinate being explicitly a distance from the right).
override
toString() String
A string representation of this object.
inherited

Operators

operator +(EdgeInsets other) EdgeInsets
Returns the sum of two EdgeInsets.
operator ==(Object other) bool
The equality operator.
inherited

Constants

zero → const EdgeInsets