copyWith method

ModernFormTextFieldListenner copyWith({
  1. String? label,
  2. dynamic value,
  3. ModernFormTextFieldListennerType? type,
  4. void onChange(
    1. dynamic
    )?,
  5. void onFieldSubmitted()?,
  6. String? validator(
    1. dynamic
    )?,
  7. bool? enabled,
  8. String? leftSymbol,
  9. String? rightSymbol,
  10. String? decimalSeparator,
  11. int? precision,
  12. Icon? prefixIcon,
  13. Widget? suffix,
  14. TextInputType? keyboardType,
  15. TextInputAction? textInputAction,
  16. TextCapitalization? textCapitalization,
  17. InputDecoration decoration(
    1. InputDecoration
    )?,
  18. EdgeInsetsGeometry? padding,
  19. String? helperText,
  20. TextStyle? helperStyle,
  21. String? mask,
  22. String? labelTextHelper,
})

Implementation

ModernFormTextFieldListenner copyWith({
  String? label,
  dynamic value,
  ModernFormTextFieldListennerType? type,
  void Function(dynamic)? onChange,
  void Function()? onFieldSubmitted,
  String? Function(dynamic)? validator,
  bool? enabled,
  String? leftSymbol,
  String? rightSymbol,
  String? decimalSeparator,
  int? precision,
  Icon? prefixIcon,
  Widget? suffix,
  TextInputType? keyboardType,
  TextInputAction? textInputAction,
  TextCapitalization? textCapitalization,
  InputDecoration Function(InputDecoration)? decoration,
  EdgeInsetsGeometry? padding,
  String? helperText,
  TextStyle? helperStyle,
  String? mask,
  String? labelTextHelper,
}) {
  return ModernFormTextFieldListenner(
    label: label ?? this.label,
    value: value ?? this.value,
    type: type ?? this.type,
    onChange: onChange ?? this.onChange,
    onFieldSubmitted: onFieldSubmitted ?? this.onFieldSubmitted,
    validator: validator ?? this.validator,
    enabled: enabled ?? this.enabled,
    leftSymbol: leftSymbol ?? this.leftSymbol,
    rightSymbol: rightSymbol ?? this.rightSymbol,
    decimalSeparator: decimalSeparator ?? this.decimalSeparator,
    precision: precision ?? this.precision,
    prefixIcon: prefixIcon ?? this.prefixIcon,
    suffix: suffix ?? this.suffix,
    keyboardType: keyboardType ?? this.keyboardType,
    textInputAction: textInputAction ?? this.textInputAction,
    textCapitalization: textCapitalization ?? this.textCapitalization,
    decoration: decoration ?? this.decoration,
    padding: padding ?? this.padding,
    helperText: helperText ?? this.helperText,
    helperStyle: helperStyle ?? this.helperStyle,
    mask: mask ?? this.mask,
    labelTextHelper: labelTextHelper ?? this.labelTextHelper,
  );
}