MorphFrame class

An immutable snapshot of all render values for one flight frame.

The system-wide invariant: every property is a PURE SYMMETRIC function of the spring value. No direction- or time-dependent curves: only then is an interruption (a retarget at any point) continuous for all properties at once, by construction.

Annotations

Constructors

MorphFrame({required Rect rect, required ShapeBorder shape, required double? cornerRadius, required double sourceOpacity, required double targetOpacity, required double targetScale, required double scrimOpacity, required double elevation, required Color surfaceColor})
Bundles the render values of one frame.
const

Properties

cornerRadius double?
The derived corner radius when both shapes can be expressed by one; null when falling back to ShapeBorder.lerp.
final
elevation double
Container shadow for this frame.
final
hashCode int
The hash code for this object.
no setterinherited
rect Rect
The container rect in overlay coordinates.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrimOpacity double
Scrim opacity for this frame.
final
shape ShapeBorder
The container outline for this frame.
final
sourceOpacity double
Opacity of the source ghost (fades out early in the flight).
final
surfaceColor Color
Container fill for this frame.
final
targetOpacity double
Opacity of the target content (fades in after the source).
final
targetScale double
Scale of the target content while it fades in.
final

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