merge method

  1. @override
TextFieldStyle merge(
  1. TextFieldStyle? other
)
override

Implementation

@override
TextFieldStyle merge(TextFieldStyle? other) {
  if (other == null) return this;
  return TextFieldStyle(
    obscureText: other.obscureText ?? obscureText,
    keyboardType: other.keyboardType ?? keyboardType,
    maxLines: other.maxLines ?? maxLines,
    minLines: other.minLines ?? minLines,
    maxLength: other.maxLength ?? maxLength,
    textAlign: other.textAlign ?? textAlign,
    textStyle: other.textStyle ?? textStyle,
    textCapitalization: other.textCapitalization ?? textCapitalization,
    enabled: other.enabled ?? enabled,
    readOnly: other.readOnly ?? readOnly,
    autofocus: other.autofocus ?? autofocus,
    inputFormatters: other.inputFormatters ?? inputFormatters,
  );
}