cHero method
Create a widget for hero animations.
tag
specifies the unique tag for the hero animation.
This extension wraps the widget with a Hero, enabling you to use it in hero animations.
Implementation
Widget cHero(Object tag) => Hero(
child: Material(
type: MaterialType.transparency,
child: this,
),
tag: tag,
);