SceneEdges class

Space inside a frame, per side.

One value where there used to be a number, because the number could only ever be uniform and the renderer was quietly making the vertical inset six tenths of the horizontal one — a guess that looked deliberate and was not. A cell in a table wants a different top from its left.

Implemented types
Available extensions

Constructors

SceneEdges({double left = 0, double top = 0, double right = 0, double bottom = 0})
const
SceneEdges.all(double value)
const

Properties

bottom → double
final
flutter → EdgeInsets

Available on SceneEdges, provided by the SceneEdgesToFlutter extension

no setter
hashCode → int
The hash code for this object.
no setteroverride
isUniform → bool
Whether one number says all of it — what the file and the inspector offer first, because it is what most frames want.
no setteroverride
isZero → bool
no setteroverride
left → double
final
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sides → List<double>
The four parts, in the order the file names them.
no setteroverride
top → double
final

Methods

copyWith({double? left, double? top, double? right, double? bottom}) → SceneEdges
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
toWire() → Object
[l, t, r, b], or the one number when they agree.
override
withSide(int index, double value) → SceneEdges
override

Operators

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

Static Methods

fromWire(Object? value) → SceneEdges
Reads toWire, and the plain number older payloads carried. A list with a non-number element falls back to zero — the whole value, the same rule SceneAlignment.fromWire uses.

Constants

zero → const SceneEdges