RenderAnimatedSizeState enum

A RenderAnimatedSize can be in exactly one of these states.

Inheritance
Available extensions
Annotations

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.

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.

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.

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.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<RenderAnimatedSizeState>
A constant List of the values in this enum, in order of their declaration.