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