RenderAnimatedSizeState enum Null safety

A RenderAnimatedSize can be in exactly one of these states.

Inheritance
Annotations

Constructors

RenderAnimatedSizeState()
const

Values

start → const RenderAnimatedSizeState

The initial state, when we do not yet know what the starting and target sizes are to animate.

The next state is stable.

RenderAnimatedSizeState()
stable → const RenderAnimatedSizeState

At this state the child's size is assumed to be stable and we are either animating, or waiting for the child's size to change.

If the child's size changes, the state will become changed. Otherwise, it remains stable.

RenderAnimatedSizeState()
changed → const RenderAnimatedSizeState

At this state we know that the child has changed once after being assumed stable.

The next state will be one of:

  • stable if the child's size stabilized immediately. This is a signal for the render object to begin animating the size towards the child's new size.

  • unstable if the child's size continues to change.

RenderAnimatedSizeState()
unstable → const RenderAnimatedSizeState

At this state the child's size is assumed to be unstable (changing each frame).

Instead of chasing the child's size in this state, the render object tightly tracks the child's size until it stabilizes.

The render object remains in this state until a frame where the child's size remains the same as the previous frame. At that time, the next state is stable.

RenderAnimatedSizeState()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<RenderAnimatedSizeState>
A constant List of the values in this enum, in order of their declaration.
[start, stable, changed, unstable]