hero method

Widget hero({
  1. required String tag,
})

Wraps the widget in a Hero widget for animated transitions.

Implementation

Widget hero({required String tag}) => Hero(tag: tag, child: this);