slidePercent property

ValueListenable<double> get slidePercent

Implementation

ValueListenable<double> get slidePercent => _slidePercent;
set slidePercent (ValueListenable<double> value)

Implementation

set slidePercent(ValueListenable<double> value) {
  if (_slidePercent != value) {
    final old = _slidePercent;
    _slidePercent = value;

    if (attached) {
      old.removeListener(_markNeedsLayoutIfCorrectPosition);
      value.addListener(_markNeedsLayoutIfCorrectPosition);
    }
  }
}