cloneWidgetInto method

  1. @override
void cloneWidgetInto(
  1. FWidget<T> copy
)
override

Implementation

@override
void cloneWidgetInto(FWidget<T> copy) {
  if (copy is! FTextInput<T>) return;
  copy._text = _text;
  copy.placeholder = placeholder;
  copy.maxLength = maxLength;
  copy.obscureText = obscureText;
  copy.inputStyle = inputStyle;
  copy.fontSize = fontSize;
  copy.fontSpacing = fontSpacing;
  copy.onChangedFn = onChangedFn;
  copy.onSubmitFn = onSubmitFn;
}