$EdgeInsets class
Properties
$reified
→ dynamic
Fully reify the underlying value so it can be used in a Dart context.
For example, recursively transform collections into their underlying
$value s.
no setter
$value
→ EdgeInsets
The backing Dart value of this $Value.
final
bottom
→ double
The offset from the bottom.
no setter override
bottomLeft
→ Offset
An Offset describing the vector from the bottom left of a rectangle to the
bottom left of that rectangle inset by this object.
no setter override
bottomRight
→ Offset
An Offset describing the vector from the bottom right of a rectangle to the
bottom right of that rectangle inset by this object.
no setter override
collapsedSize
→ Size
The size that this EdgeInsets would occupy with an empty interior.
no setter override
flipped
→ EdgeInsets
An EdgeInsets with top and bottom as well as left and right flipped.
no setter override
hashCode
→ int
The hash code for this object.
no setter inherited
horizontal
→ double
The total offset in the horizontal direction.
no setter override
isNonNegative
→ bool
Whether every dimension is non-negative.
no setter override
left
→ double
The offset from the left.
no setter override
right
→ double
The offset from the right.
no setter override
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
top
→ double
The offset from the top.
no setter override
topLeft
→ Offset
An Offset describing the vector from the top left of a rectangle to the
top left of that rectangle inset by this object.
no setter override
topRight
→ Offset
An Offset describing the vector from the top right of a rectangle to the
top right of that rectangle inset by this object.
no setter override
vertical
→ double
The total offset in the vertical direction.
no setter override
Methods
$getProperty (Runtime runtime , String identifier )
→ $Value?
Get a property by identifier on this instance
$getRuntimeType (Runtime runtime )
→ int
Index of the class Type in the runtime dictionary. By definition
can change from run to run, so it's customary to use Runtime.lookupType
in implementations.
$setProperty (Runtime runtime , String identifier , $Value value )
→ void
Set a property by identifier on this instance to value
add (EdgeInsetsGeometry other )
→ EdgeInsetsGeometry
Returns the sum of two EdgeInsetsGeometry objects.
override
along (Axis axis )
→ double
The total offset in the given direction.
override
clamp (EdgeInsetsGeometry min , EdgeInsetsGeometry max )
→ EdgeInsetsGeometry
Returns a new EdgeInsetsGeometry object with all values greater than
or equal to min, and less than or equal to max.
override
copyWith ({double ? left , double ? top , double ? right , double ? bottom })
→ EdgeInsets
Creates a copy of this EdgeInsets but with the given fields replaced
with the new values.
override
deflateRect (Rect rect )
→ Rect
Returns a new rect that is smaller than the given rect in each direction by
the amount of inset in each direction. Specifically, the left edge of the
rect is moved right by left , the top edge of the rect is moved down by
top , the right edge of the rect is moved left by right , and the
bottom edge of the rect is moved up by bottom .
override
deflateRRect (RRect rect )
→ RRect
Returns a new RRect shrunk by this EdgeInsets , decreasing each corner's
radius by the corresponding per-axis inset amounts (clamped at zero).
override
deflateSize (Size size )
→ Size
Returns a new size that is smaller than the given size by the amount of
inset in the horizontal and vertical directions.
override
inflateRect (Rect rect )
→ Rect
Returns a new rect that is bigger than the given rect in each direction by
the amount of inset in each direction. Specifically, the left edge of the
rect is moved left by left , the top edge of the rect is moved up by
top , the right edge of the rect is moved right by right , and the
bottom edge of the rect is moved down by bottom .
override
inflateRRect (RRect rect )
→ RRect
Returns a new RRect expanded by this EdgeInsets , increasing each corner's
radius by the corresponding per-axis inset amounts (clamped at zero).
override
inflateSize (Size size )
→ Size
Returns a new size that is bigger than the given size by the amount of
inset in the horizontal and vertical directions.
override
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve (TextDirection ? direction )
→ EdgeInsets
Convert this instance into an EdgeInsets , which uses literal coordinates
(i.e. the left coordinate being explicitly a distance from the left, and
the right coordinate being explicitly a distance from the right).
override
subtract (EdgeInsetsGeometry other )
→ EdgeInsetsGeometry
Returns the difference between two EdgeInsetsGeometry objects.
override
toString ()
→ String
A string representation of this object.
inherited
Static Methods
$all (Runtime runtime , $Value? target , List <$Value? > args )
→ $Value?
$fromLTRB (Runtime runtime , $Value? target , List <$Value? > args )
→ $Value?
$only (Runtime runtime , $Value? target , List <$Value? > args )
→ $Value?
$symmetric (Runtime runtime , $Value? target , List <$Value? > args )
→ $Value?