hero method

Widget hero(
  1. Object tag
)

Wraps widget with Hero animation.

Example:

Image.asset('avatar.png').hero('avatar-tag');

Implementation

Widget hero(Object tag) {
  return Hero(tag: tag, child: this);
}