buildHero method
Implementation
@protected
Widget buildHero(BuildParameters params) {
final child = params.widgets["child"] != null
? builder.buildWidget(params.context, params.widgets["child"],
params.state, params.parentContext)
: const SizedBox();
return Hero(
key: properties.getKey(params.id),
tag: params.props["tag"] ?? params.id,
child: Material(
type: MaterialType.transparency,
child: child,
));
}