apply property

void apply=(NikuTextFormField? v)
override

Implementation

set apply(NikuTextFormField? v) {
  if (v == null) return;

  if (decoration == null && v.decoration != null)
    decoration = NikuInputDecoration();
  if (style == null && v.style != null) style = NikuTextStyle();
  if (strutStyle == null && v.strutStyle != null)
    strutStyle = NikuStrutStyle();

  decoration?.apply = v.decoration;
  style?.apply = v.style;
  strutStyle?.apply = v.strutStyle;

  initialValue = v.initialValue ?? initialValue;
  focusNode = v.focusNode ?? focusNode;
  keyboardType = v.keyboardType ?? keyboardType;
  textCapitalization = v.textCapitalization ?? textCapitalization;
  textInputAction = v.textInputAction ?? textInputAction;
  textDirection = v.textDirection ?? textDirection;
  textAlign = v.textAlign ?? textAlign;
  textAlignVertical = v.textAlignVertical ?? textAlignVertical;
  autofocus = v.autofocus ?? autofocus;
  readOnly = v.readOnly ?? readOnly;
  toolbarOptions = v.toolbarOptions ?? toolbarOptions;
  showCursor = v.showCursor ?? showCursor;
  obscuringCharacter = v.obscuringCharacter ?? obscuringCharacter;
  obscureText = v.obscureText ?? obscureText;
  autocorrect = v.autocorrect ?? autocorrect;
  smartDashesType = v.smartDashesType ?? smartDashesType;
  smartQuotesType = v.smartQuotesType ?? smartQuotesType;
  enableSuggestions = v.enableSuggestions ?? enableSuggestions;
  autovalidate = v.autovalidate ?? autovalidate;
  maxLengthEnforced = v.maxLengthEnforced ?? maxLengthEnforced;
  maxLengthEnforcement = v.maxLengthEnforcement ?? maxLengthEnforcement;
  maxLines = v.maxLines ?? maxLines;
  minLines = v.minLines ?? minLines;
  expands = v.expands ?? expands;
  maxLength = v.maxLength ?? maxLength;
  onChanged = v.onChanged ?? onChanged;
  onTap = v.onTap ?? onTap;
  onEditingComplete = v.onEditingComplete ?? onEditingComplete;
  onFieldSubmitted = v.onFieldSubmitted ?? onFieldSubmitted;
  onSaved = v.onSaved ?? onSaved;
  validator = v.validator ?? validator;
  inputFormatters = v.inputFormatters ?? inputFormatters;
  enabled = v.enabled ?? enabled;
  cursorWidth = v.cursorWidth ?? cursorWidth;
  cursorHeight = v.cursorHeight ?? cursorHeight;
  cursorRadius = v.cursorRadius ?? cursorRadius;
  cursorColor = v.cursorColor ?? cursorColor;
  keyboardAppearance = v.keyboardAppearance ?? keyboardAppearance;
  scrollPadding = v.scrollPadding ?? scrollPadding;
  enableInteractiveSelection =
      v.enableInteractiveSelection ?? enableInteractiveSelection;
  selectionControls = v.selectionControls ?? selectionControls;
  buildCounter = v.buildCounter ?? buildCounter;
  scrollPhysics = v.scrollPhysics ?? scrollPhysics;
  autofillHints = v.autofillHints ?? autofillHints;
  restorationId = v.restorationId ?? restorationId;
  enableIMEPersonalizedLearning =
      v.enableIMEPersonalizedLearning ?? enableIMEPersonalizedLearning;
  contextMenuBuilder = v.contextMenuBuilder ?? contextMenuBuilder;
  magnifierConfiguration = v.magnifierConfiguration ?? magnifierConfiguration;
  spellCheckConfiguration =
      v.spellCheckConfiguration ?? spellCheckConfiguration;

  $parent..$merge(v.$parent);
}