IndicatorNotifier constructor

IndicatorNotifier({
  1. required Indicator indicator,
  2. required TickerProviderStateMixin<StatefulWidget> vsync,
  3. required ValueNotifier<bool> userOffsetNotifier,
  4. required CanProcessCallBack onCanProcess,
  5. required bool canProcessAfterNoMore,
  6. Axis? triggerAxis,
  7. bool waitTaskResult = true,
  8. 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;
}