SlideController constructor
SlideController({
- bool usePreActionController = false,
- bool usePostActionController = false,
- ActionPosition? initOpenedPosition,
- 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();
}
}