FlightState class
HeroAnimation FlightState, allows the hero child subtree to change its properties accordingly.
FlightState:
isAppeared - HeroStill
is rendered for the first time,
HeroFly
is invisible
isFlightStarted - HeroFly
becomes visible and starts to 'fly',
HeroStill
is invisible.
Might be called multiple times for the same hero,
on each call flightCount is incremented.
isFlightEnded - HeroStill
becomes visible at a new position,
HeroFly
is invisible
flightCount could be used by the hero child subtree to distinguish between, 'intentional' flight and some adjustment flights that could happen when adjacent widget layout is changed, e.g. new child is added to a parent Row or Column.
- Available Extensions
Properties
- flightCount → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isAppeared(
) → bool -
isFlightEnded(
) → bool -
isFlightStarted(
) → bool -
isInitial(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override