copyWith property

Creates a copy of this state with given fields replaced by new values, with updateTime set to DateTime.now, and unless otherwise replaced, with updatePosition set to position.

The errorCode and errorMessage will be set to null unless processingState is AudioProcessingState.error.

Implementation

PlaybackStateCopyWith get copyWith => _PlaybackStateCopyWith(this);