EdgeInsets class final

Flutter's EdgeInsets (left, top, right, bottom). JSON: a number (all sides) or [left, top, right, bottom].

Annotations
  • @immutable

Constructors

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

Properties

bottom → double
final
hashCode → int
The hash code for this object.
no setteroverride
horizontal → double
no setter
isZero → bool
no setter
left → double
final
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
top → double
final
vertical → double
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Object
toString() → String
A string representation of this object.
override

Operators

operator +(EdgeInsets o) → EdgeInsets
operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Object? json) → EdgeInsets

Constants

zero → const EdgeInsets