KeyboardAvoider constructor

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

Implementation

KeyboardAvoider({
  Key? key,
  required this.child,
  this.physics,
  this.duration = BottomAreaAvoider.defaultDuration,
  this.curve = BottomAreaAvoider.defaultCurve,
  this.autoScroll = BottomAreaAvoider.defaultAutoScroll,
  this.overscroll = BottomAreaAvoider.defaultOverscroll,
})  : assert(child is ScrollView ? child.controller != null : true),
      super(key: key);