BoxEdge class
This class stores the sizes of the box edges in the CSS box model. Each
edge area is placed around the sides of the content box. The innermost area
is the Style.padding
area which has a background and surrounds the
content. The content and padding area is surrounded by the Style.border
,
which itself is surrounded by the transparent Style.margin
. This box
represents the eges of padding, border, or margin depending on which
accessor was used to retrieve it.
Constructors
- BoxEdge([num? left, num? top, num? right, num? bottom])
-
Creates a box edge with the specified
left
,top
,right
, andbottom
width.const - BoxEdge.clockwiseFromTop(num? top, num? right, num? bottom, num? left)
-
Creates a box edge with the specified
top
,right
,bottom
, andleft
width. This matches the typical CSS order: developer.mozilla.org/en/CSS/margin developer.mozilla.org/en/CSS/border-width developer.mozilla.org/en/CSS/padding.const - BoxEdge.nonNull(BoxEdge? other)
-
Takes a possibly null box edge, with possibly null metrics, and fills
them in with 0 instead.
factory
- BoxEdge.uniform(num size)
-
This is a helper to creates a box edge with the same left, top
right, and bottom widths.
const
Properties
- bottom → num?
-
The size of the bottom edge, or null if the style has no edge.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → num
-
The total size of the vertical edges. Equal to top + bottom, where
null is interpreted as 0px.
no setter
- left → num?
-
The size of the left edge, or null if the style has no edge.
final
- right → num?
-
The size of the right edge, or null if the style has no edge.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → num?
-
The size of the top edge, or null if the style has no edge.
final
- width → num
-
The total size of the horizontal edges. Equal to left + right, where
null is interpreted as 0px.
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited