copyWith method

FitTextInput copyWith({
  1. String? label,
  2. TextEditingController? controller,
  3. bool? autofocus,
  4. TextInputAction? inputAction,
  5. bool? markAsRequired,
  6. String? hint,
  7. bool? hideValue,
  8. Widget? suffix,
  9. FocusNode? focusNode,
  10. AutovalidateMode? validationMode,
  11. TextInputType? keyboardType,
  12. TextCapitalization? capitalization,
  13. List<TextInputFormatter>? formatters,
  14. String? validation(
    1. String?
    )?,
  15. dynamic onFieldSubmitted(
    1. String
    )?,
  16. dynamic onChange(
    1. String
    )?,
  17. EdgeInsets? margin,
  18. EdgeInsets? padding,
  19. int? maxLines,
  20. int? minLines,
  21. bool? expand,
  22. double? width,
  23. double? height,
  24. bool? readonly,
})

Copies an instance and override properties.

Implementation

FitTextInput copyWith({
  String? label,
  TextEditingController? controller,
  bool? autofocus,
  TextInputAction? inputAction,
  bool? markAsRequired,
  String? hint,
  bool? hideValue,
  Widget? suffix,
  FocusNode? focusNode,
  AutovalidateMode? validationMode,
  TextInputType? keyboardType,
  TextCapitalization? capitalization,
  List<TextInputFormatter>? formatters,
  String? Function(String?)? validation,
  dynamic Function(String)? onFieldSubmitted,
  dynamic Function(String)? onChange,
  EdgeInsets? margin,
  EdgeInsets? padding,
  int? maxLines,
  int? minLines,
  bool? expand,
  double? width,
  double? height,
  bool? readonly,
}) =>
    FitTextInput(
      label: label ?? this.label,
      controller: controller ?? this.controller,
      autofocus: autofocus ?? this.autofocus,
      inputAction: inputAction ?? this.inputAction,
      markAsRequired: markAsRequired ?? this.markAsRequired,
      hint: hint ?? this.hint,
      hideValue: hideValue ?? this.hideValue,
      suffix: suffix ?? this.suffix,
      focusNode: focusNode ?? this.focusNode,
      validationMode: validationMode ?? this.validationMode,
      keyboardType: keyboardType ?? this.keyboardType,
      capitalization: capitalization ?? this.capitalization,
      formatters: formatters ?? this.formatters,
      validation: validation ?? this.validation,
      onFieldSubmitted: onFieldSubmitted ?? this.onFieldSubmitted,
      onChange: onChange ?? this.onChange,
      margin: margin ?? this.margin,
      padding: padding ?? this.padding,
      maxLines: maxLines ?? this.maxLines,
      minLines: minLines ?? this.minLines,
      expand: expand ?? this.expand,
      width: width ?? this.width,
      height: height ?? this.height,
      readonly: readonly ?? this.readonly,
    );