ShowHideFAB constructor

const ShowHideFAB({
  1. Key? key,
  2. required FloatingActionButton fab,
  3. Duration animationDuration = kThemeAnimationDuration,
  4. Curve showCurve = Curves.linear,
  5. Curve hideCurve = Curves.linear,
  6. bool shouldShow = true,
})

Creates a ShowHideFAB widget.

fab parameter must not be null. shouldShow parameter toggles the fab (true/false => show/hide).

Implementation

const ShowHideFAB({
  Key? key,
  required this.fab,
  this.animationDuration = kThemeAnimationDuration,
  this.showCurve = Curves.linear,
  this.hideCurve = Curves.linear,
  this.shouldShow = true,
}) : super(key: key);