hero method

Widget hero(
  1. Widget text
)

Implementation

Widget hero(Widget text) {
  if (heroTag != null) return Hero(tag: heroTag!, child: text);
  return text;
}