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,
})

Implementation

void updateValue(
    {bool? fillColor,
    int? maxLines,
    TextAlign? textAlign,
    bool? hasFocus,
    bool? editingMode,
    bool? hasStickers,
    bool? isEditing,
    bool? stickerPickerView,
    bool? colorPickerVisibility}) {
  if (!(hasFocus ?? false)) {
    SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: []);
  }
  value = value.copyWith(
    fillColor: fillColor,
    maxLines: maxLines,
    textAlign: textAlign,
    hasFocus: hasFocus,
    editingMode: editingMode,
    hasStickers: hasStickers,
    isEditing: isEditing,
    stickerPickerView: stickerPickerView,
    colorPickerVisibility: colorPickerVisibility,
  );
}