hero method

Widget hero(
  1. String? heroTag
)

Implementation

Widget hero(String? heroTag) {
  return heroTag == null ? this : Hero(tag: heroTag, child: this);
}