updateValue method

void updateValue({
  1. bool? fillColor,
  2. int? maxLines,
  3. TextAlign? textAlign,
  4. bool? hasFocus,
  5. bool? editingMode,
  6. bool? hasStickers,
  7. bool? isEditing,
  8. bool? stickerPickerView,
  9. bool? colorPickerVisibility,
})

Update playground value

Implementation

void updateValue(
    {bool? fillColor,
    int? maxLines,
    TextAlign? textAlign,
    bool? hasFocus,
    bool? editingMode,
    bool? hasStickers,
    bool? isEditing,
    bool? stickerPickerView,
    bool? colorPickerVisibility}) {
  // if (!(hasFocus ?? false)) {
  //   // Hide status bar
  //   SystemChrome.setEnabledSystemUIOverlays([]);
  // }
  value = value.copyWith(
    fillColor: fillColor,
    maxLines: maxLines,
    textAlign: textAlign,
    hasFocus: hasFocus,
    editingMode: editingMode,
    hasStickers: hasStickers,
    isEditing: isEditing,
    stickerPickerView: stickerPickerView,
    colorPickerVisibility: colorPickerVisibility,
  );
}