HeroAnimation.of constructor

HeroAnimation.of(
  1. BuildContext context
)

Implementation

factory HeroAnimation.of(BuildContext context) {
  try {
    return Provider.of<HeroAnimation>(context);
  } on ProviderNotFoundException {
    return const HeroAnimation(null, ExpandingCardState.collapsed);
  }
}