BottomAreaAvoider constructor

BottomAreaAvoider({
  1. Key? key,
  2. required Widget? child,
  3. required double areaToAvoid,
  4. bool autoScroll = false,
  5. Duration duration = defaultDuration,
  6. Curve curve = defaultCurve,
  7. double overscroll = defaultOverscroll,
  8. ScrollPhysics? physics,
})

Implementation

BottomAreaAvoider(
    {Key? key,
    required this.child,
    required this.areaToAvoid,
    this.autoScroll = false,
    this.duration = defaultDuration,
    this.curve = defaultCurve,
    this.overscroll = defaultOverscroll,
    this.physics})
    : //assert(child is ScrollView ? child.controller != null : true),
      assert(areaToAvoid >= 0, 'Cannot avoid a negative area'),
      super(key: key);