copyWith method

SaveSlotMeta copyWith({
  1. String? displayName,
  2. int? lastPlayedAtMs,
})

Implementation

SaveSlotMeta copyWith({String? displayName, int? lastPlayedAtMs}) =>
    SaveSlotMeta(
      id: id,
      displayName: displayName ?? this.displayName,
      createdAtMs: createdAtMs,
      lastPlayedAtMs: lastPlayedAtMs ?? this.lastPlayedAtMs,
    );