copyWith method

TextInputOptions copyWith({
  1. String? label,
  2. bool? isRequired,
  3. int? maxLength,
  4. bool? autoFocus,
})

Implementation

TextInputOptions copyWith(
        {String? label, bool? isRequired, int? maxLength, bool? autoFocus}) =>
    TextInputOptions(
      label: label ?? this.label,
      isRequired: isRequired ?? this.isRequired,
      maxLength: maxLength ?? this.maxLength,
      autoFocus: autoFocus ?? this.autoFocus,
    );