SlideController constructor

SlideController({
  1. bool usePreActionController = false,
  2. bool usePostActionController = false,
  3. ActionPosition? initOpenedPosition,
  4. double slideTolerance = _kSlideRatioTolerance,
})

Implementation

SlideController({
  this.usePreActionController = false,
  this.usePostActionController = false,
  this.initOpenedPosition,
  this.slideTolerance = _kSlideRatioTolerance,
}) : assert(slideTolerance >= 0 && slideTolerance <= 1) {
  _initPositionView(initOpenedPosition);

  _animationController.addListener(() {
    notifyListeners();
  });

  if (usePreActionController) {
    _preActionController = ActionController();
  }

  if (usePostActionController) {
    _postActionController = ActionController();
  }
}