copyWith method
PlaygroundValue
copyWith(
{ - TextAlign? textAlign,
- bool? fillColor,
- bool? hasFocus,
- bool? editingMode,
- int? maxLines,
- bool? hasStickers,
- bool? isEditing,
- PlaygroundBackground? background,
- GradientBackground? textBackground,
- bool? stickerPickerView,
- 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,
);
}