EdgeInsets class

Four-sided padding or margin in logical pixels.

Padding(padding: EdgeInsets.all(8), child: StyledText('Hi'));

Constructors

EdgeInsets.all(num value)
Applies one inset to every side.
const
EdgeInsets.only({num left = 0, num top = 0, num right = 0, num bottom = 0})
Creates insets for each side.
const
EdgeInsets.symmetric({num vertical = 0, num horizontal = 0})
Creates symmetric vertical and horizontal insets.
const

Properties

bottom → num
Bottom inset.
final
css → String
CSS four-value shorthand.
no setter
hashCode → int
The hash code for this object.
no setterinherited
left → num
Left inset.
final
Right inset.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
top → num
Top inset.
final

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

zero → const EdgeInsets
Zero inset.