NewDecimalField constructor
const
NewDecimalField({
- String decimalSeparator = ',',
- String thousandSeparator = '.',
- String? labelPrefix = '',
- String? label,
- Widget? labelWidget,
- NewDecimalEditingController? controller,
- FormFieldValidator<
Decimal?> ? validator, - TextAlign textAlign = TextAlign.end,
- FormFieldSetter<
Decimal?> ? onSaved, - Decimal? initialValue,
- bool enabled = true,
- AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
- FocusNode? focusNode,
- TextInputAction? textInputAction,
- ValueChanged<
String?> ? onFieldSubmitted, - EdgeInsets scrollPadding = const EdgeInsets.all(20),
- bool enableInteractiveSelection = true,
- bool filled = false,
- Color? fillColor,
- bool readOnly = false,
- TextStyle? style,
- InputDecoration? decoration,
- EdgeInsets padding = const EdgeInsets.all(8),
- String? hintText,
- EdgeInsets? contentPadding,
- String? counterText = '',
- Widget? prefix,
- Widget? prefixIcon,
- Widget? suffix,
- Widget? suffixIcon,
- void onTap()?,
- void lostFocus()?,
- bool required = true,
- bool clearOnCancel = true,
- int? sizeExtraSmall,
- int? sizeSmall,
- int? sizeMedium,
- int? sizeLarge,
- int? sizeExtraLarge,
- double? minHeight,
- Key? key,
Implementation
const NewDecimalField({
this.decimalSeparator = ',',
this.thousandSeparator = '.',
super.labelPrefix,
super.label,
super.labelWidget,
super.controller,
super.validator,
super.textAlign = TextAlign.end,
super.onSaved,
super.initialValue,
super.enabled = true,
super.autoValidateMode = AutovalidateMode.disabled,
super.focusNode,
super.textInputAction,
super.onFieldSubmitted,
super.scrollPadding = const EdgeInsets.all(20),
super.enableInteractiveSelection = true,
super.filled = false,
super.fillColor,
super.readOnly = false,
super.style,
super.decoration,
super.padding = const EdgeInsets.all(8),
super.hintText,
super.contentPadding,
super.counterText,
super.prefix,
super.prefixIcon,
super.suffix,
super.suffixIcon,
super.onTap,
super.lostFocus,
super.required = true,
super.clearOnCancel = true,
super.sizeExtraSmall,
super.sizeSmall,
super.sizeMedium,
super.sizeLarge,
super.sizeExtraLarge,
super.minHeight,
super.key,
});