IndicatorNotifier constructor
IndicatorNotifier({
- required Indicator indicator,
- required TickerProviderStateMixin<
StatefulWidget> vsync, - required ValueNotifier<
bool> userOffsetNotifier, - required CanProcessCallBack onCanProcess,
- required bool canProcessAfterNoMore,
- Axis? triggerAxis,
- bool waitTaskResult = true,
- FutureOr task()?,
Implementation
IndicatorNotifier({
required Indicator indicator,
required this.vsync,
required this.userOffsetNotifier,
required CanProcessCallBack onCanProcess,
required bool canProcessAfterNoMore,
Axis? triggerAxis,
bool waitTaskResult = true,
FutureOr Function()? task,
}) : _indicator = indicator,
_onCanProcess = onCanProcess,
_canProcessAfterNoMore = canProcessAfterNoMore,
_triggerAxis = triggerAxis,
_waitTaskResult = waitTaskResult,
_task = task {
_initClampingAnimation();
userOffsetNotifier.addListener(_onUserOffset);
indicator.listenable?._bind(this);
_mounted = true;
}