HeroPlaceholderBuilder typedef

Widget HeroPlaceholderBuilder (
  1. BuildContext context,
  2. Size heroSize,
  3. Widget child

Signature for a function that builds a Hero placeholder widget given a child and a Size.

The child can optionally be part of the returned widget tree. The returned widget should typically be constrained to heroSize, if it doesn't do so implicitly.

See also:


typedef HeroPlaceholderBuilder = Widget Function(
  BuildContext context,
  Size heroSize,
  Widget child,