Spacing class final

Defines spacing insets for edges of a box.

Annotations

Constructors

Spacing.all(int value)
Creates spacing where all the offsets are the same.
const
Spacing.fromLTRB(int left, int top, int right, int bottom)
Creates spacing from offsets from the left, top, right, and bottom edges.
const
Spacing.horizontal({int value = 0})
Creates spacing with symmetrical horizontal offsets.
const
Spacing.only({int left = 0, int top = 0, int right = 0, int bottom = 0})
Creates spacing where only the given values are non-zero.
const
Spacing.symmetric({int vertical = 0, int horizontal = 0})
Creates spacing with symmetrical vertical and horizontal offsets.
const
Spacing.vertical({int value = 0})
Creates spacing with symmetrical vertical offsets.
const

Properties

bottom int
Offset from the bottom edge.
final
hashCode int
The hash code for this object.
no setteroverride
horizontal int
Returns the sum of the horizontal offsets.
no setter
left int
Offset from the left edge.
final
Offset from the right edge.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
top int
Offset from the top edge.
final
vertical int
Returns the sum of the vertical offsets.
no setter

Methods

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

Operators

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

Constants

none → const Spacing
Creates spacing with no offsets.