fromWire static method
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.
Implementation
static SceneEdges fromWire(Object? value) => switch (value) {
num n => SceneEdges.all(n.toDouble()),
List l when l.length == 4 && l.every((e) => e is num) => SceneEdges(
left: (l[0] as num).toDouble(),
top: (l[1] as num).toDouble(),
right: (l[2] as num).toDouble(),
bottom: (l[3] as num).toDouble(),
),
_ => zero,
};