HeroTag class final

Makes the node a shared element (Flutter's Hero): it flies from where the node with the same tag was to where it is, between two screens while a navigation plays (HeroFlies.betweenScreens, Flutter's) or when it appears in place (HeroFlies.inPlace). JSON: the tag alone ("hero": "avatar-1") or {"tag", "flies", "flightShuttle", "placeholder", "flight"}.

Annotations
  • @immutable

Constructors

HeroTag(String tag, {HeroFlies flies = HeroFlies.betweenScreens, HeroFlightShuttle flightShuttle = HeroFlightShuttle.standard, HeroPlaceholder placeholder = HeroPlaceholder.none, Flight? flight})
const

Properties

flies → HeroFlies
When it flies.
final
flight → Flight?
How it flies in place; null: on a spring.
final
flightShuttle → HeroFlightShuttle
What a flight between screens draws (Hero.flightShuttleBuilder).
final
hashCode → int
The hash code for this object.
no setterinherited
isPlain → bool
The tag alone when everything else is Flutter's default.
no setter
placeholder → HeroPlaceholder
What the destination shows until its own image has loaded (between screens).
final
props → List<Object?>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tag → String
Flutter's Hero.tag: the node with the same tag on the other side.
final

Methods

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

Operators

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

Static Methods

fromJson(Object? json) → HeroTag?