copyWith method
ModernFormTextFieldListenner
copyWith({
- String? label,
- dynamic value,
- ModernFormTextFieldListennerType? type,
- void onChange(
- dynamic
- void onFieldSubmitted()?,
- String? validator(
- dynamic
- bool? enabled,
- String? leftSymbol,
- String? rightSymbol,
- String? decimalSeparator,
- int? precision,
- Icon? prefixIcon,
- Widget? suffix,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization? textCapitalization,
- InputDecoration decoration()?,
- EdgeInsetsGeometry? padding,
- String? helperText,
- TextStyle? helperStyle,
- String? mask,
- 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,
);
}