Margins class
Constructors
- Margins({Margin? left, Margin? right, Margin? inlineEnd, Margin? inlineStart, Margin? top, Margin? bottom, Margin? blockEnd, Margin? blockStart})
-
const
- Margins.all(double value, [Unit? unit])
- Analogous to EdgeInsets.all
- Margins.only({double? left, double? right, double? inlineEnd, double? inlineStart, double? top, double? bottom, double? blockEnd, double? blockStart, Unit? unit})
- Analogous to EdgeInsets.only
- Margins.symmetric({double? horizontal, double? vertical, Unit? unit})
- Analogous to EdgeInsets.symmetric
Properties
- blockEnd → Margin?
-
final
- blockStart → Margin?
-
final
- bottom → Margin?
-
final
- collapsedSize → Size
-
The size that this Margins would occupy with an empty interior.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- horizontal → double
-
The total margin in the horizontal direction.
no setter
- inlineEnd → Margin?
-
final
- inlineStart → Margin?
-
final
- left → Margin?
-
final
- right → Margin?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → Margin?
-
final
- vertical → double
-
The total margin in the vertical direction.
no setter
Methods
-
collapse(
) → Margins - Auto margins already have a "value" of zero so can be considered collapsed.
-
copyWith(
{Margin? left, Margin? right, Margin? inlineEnd, Margin? inlineStart, Margin? top, Margin? bottom, Margin? blockEnd, Margin? blockStart}) → Margins -
copyWithEdge(
{double? left, double? right, double? inlineEnd, double? inlineStart, double? top, double? bottom, double? blockEnd, double? blockStart}) → Margins -
merge(
Margins? other) → Margins -
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
Static Properties
- zero → Margins
-
Analogous to EdgeInsets.zero
no setter