copyWith method Null safety

SpeechPackageStatus copyWith(
  1. {String? id,
  2. bool? isDownloaded,
  3. bool? isActivated,
  4. bool? isUpdated}
)
inherited

Implementation

SpeechPackageStatus copyWith(
    {String? id, bool? isDownloaded, bool? isActivated, bool? isUpdated}) {
  return SpeechPackageStatus(
    id: id ?? this.id,
    isDownloaded: isDownloaded ?? this.isDownloaded,
    isActivated: isActivated ?? this.isActivated,
    isUpdated: isUpdated ?? this.isUpdated,
  );
}