copyWith method

PlaygroundValue copyWith({
  1. TextAlign? textAlign,
  2. bool? fillColor,
  3. bool? hasFocus,
  4. bool? editingMode,
  5. int? maxLines,
  6. bool? hasStickers,
  7. bool? isEditing,
  8. PlaygroundBackground? background,
  9. GradientBackground? textBackground,
  10. bool? stickerPickerView,
  11. bool? colorPickerVisibility,
})

Implementation

PlaygroundValue copyWith(
    {TextAlign? textAlign,
    bool? fillColor,
    bool? hasFocus,
    bool? editingMode,
    int? maxLines,
    bool? hasStickers,
    bool? isEditing,
    PlaygroundBackground? background,
    GradientBackground? textBackground,
    bool? stickerPickerView,
    bool? colorPickerVisibility}) {
  return PlaygroundValue(
    textAlign: textAlign ?? this.textAlign,
    fillColor: fillColor ?? this.fillColor,
    hasFocus: hasFocus ?? this.hasFocus,
    maxLines: maxLines ?? this.maxLines,
    hasStickers: hasStickers ?? this.hasStickers,
    isEditing: isEditing ?? this.isEditing,
    background: background ?? this.background,
    textBackground: textBackground ?? this.textBackground,
    stickerPickerView: stickerPickerView ?? this.stickerPickerView,
    colorPickerVisibility:
        colorPickerVisibility ?? this.colorPickerVisibility,
  );
}