heroOrNot method
Widget
heroOrNot(
- Object? tag, {
- CreateRectTween? createRectTween,
- HeroFlightShuttleBuilder? flightShuttleBuilder,
- HeroPlaceholderBuilder? placeholderBuilder,
- bool transitionOnUserGestures = false,
If tag
is null, this will be returned.
see Widget
Implementation
Widget heroOrNot(
Object? tag, {
CreateRectTween? createRectTween,
HeroFlightShuttleBuilder? flightShuttleBuilder,
HeroPlaceholderBuilder? placeholderBuilder,
bool transitionOnUserGestures = false,
}) =>
tag == null
? this
: Hero(
tag: tag,
createRectTween: createRectTween,
flightShuttleBuilder: flightShuttleBuilder,
placeholderBuilder: placeholderBuilder,
transitionOnUserGestures: transitionOnUserGestures,
child: this);