HeroBarWidget.collapsed constructor

HeroBarWidget.collapsed({
  1. Key? key,
  2. required Widget child,
  3. required double height,
})

Implementation

HeroBarWidget.collapsed({
  Key? key,
  required Widget child,
  required double height,
})   : child = SizedBox(height: height, child: child),
      collapsedHeight = height,
      expandedHeight = 0.0,
      super(key: key);