copyWith method

Preferences copyWith({
  1. double? textBoxHeight,
  2. int? typingDelay,
  3. double? backgroundParallax,
  4. Map<String, Offset>? spritePositions,
  5. String? savePath,
  6. String translate(
    1. String
    )?,
})

Implementation

Preferences copyWith({
  double? textBoxHeight,
  int? typingDelay,
  double? backgroundParallax,
  Map<String, Offset>? spritePositions,
  String? savePath,
  String Function(String)? translate,
}) =>
    Preferences(
        textBoxHeight: textBoxHeight ?? this.textBoxHeight,
        typingDelay: typingDelay ?? this.typingDelay,
        backgroundParallax: backgroundParallax ?? this.backgroundParallax,
        spritePositions: spritePositions ?? this.spritePositions,
        savePath: savePath ?? this.savePath,
        translate: translate ?? this.translate);