setPlaybackProgress method

void setPlaybackProgress(
  1. double playbackProgress
)

Setter for playbackProgress When the given value is not between 0.0 and 1.0, throws RangeError

Implementation

void setPlaybackProgress(double playbackProgress) {
  if (playbackProgress >= 0.0 && playbackProgress <= 1.0) {
    this.playbackProgress = playbackProgress;
    FlutterCarPlayController.updateCPListItem(this);
  } else {
    throw RangeError('playbackProgress must be between 0.0 and 1.0');
  }
}