ScrollAnimatedFab constructor

const ScrollAnimatedFab({
  1. Key? key,
  2. required Widget fab,
  3. AnimatedFabController? controller,
  4. Duration duration = _kDefaultDuration,
  5. Curve curve = _kDefaultCurve,
  6. required ScrollController scrollController,
  7. ScrollAnimatedCondition condition = ScrollAnimatedCondition.offset,
  8. double offset = _kDefaultScrollOffset,
  9. Widget customBuilder(
    1. Animation<double> animation,
    2. Widget fab
    )?,
  10. bool customBehavior(
    1. ScrollPosition pos
    )?,
})

Implementation

const ScrollAnimatedFab({
  Key? key,
  required this.fab,
  this.controller,
  this.duration = _kDefaultDuration,
  this.curve = _kDefaultCurve,
  required this.scrollController,
  this.condition = ScrollAnimatedCondition.offset,
  this.offset = _kDefaultScrollOffset,
  this.customBuilder,
  this.customBehavior,
})  : assert(offset >= 0),
      super(key: key);