copyWith method

SourceText copyWith({
  1. String? uuid,
  2. String? source,
  3. List<MinecraftVersion>? gameVersions,
  4. String? key,
  5. SourceTextType? type,
})

Implementation

SourceText copyWith({
  String? uuid,
  String? source,
  List<MinecraftVersion>? gameVersions,
  String? key,
  SourceTextType? type,
}) {
  return SourceText(
    uuid: uuid ?? this.uuid,
    source: source ?? this.source,
    gameVersions: gameVersions ?? this.gameVersions,
    key: key ?? this.key,
    type: type ?? this.type,
  );
}