NewDecimalField constructor

const NewDecimalField({
  1. String decimalSeparator = ',',
  2. String thousandSeparator = '.',
  3. String? labelPrefix = '',
  4. String? label,
  5. Widget? labelWidget,
  6. NewDecimalEditingController? controller,
  7. FormFieldValidator<Decimal?>? validator,
  8. TextAlign textAlign = TextAlign.end,
  9. FormFieldSetter<Decimal?>? onSaved,
  10. Decimal? initialValue,
  11. bool enabled = true,
  12. AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
  13. FocusNode? focusNode,
  14. TextInputAction? textInputAction,
  15. ValueChanged<String?>? onFieldSubmitted,
  16. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  17. bool enableInteractiveSelection = true,
  18. bool filled = false,
  19. Color? fillColor,
  20. bool readOnly = false,
  21. TextStyle? style,
  22. InputDecoration? decoration,
  23. EdgeInsets padding = const EdgeInsets.all(8),
  24. String? hintText,
  25. EdgeInsets? contentPadding,
  26. String? counterText = '',
  27. Widget? prefix,
  28. Widget? prefixIcon,
  29. Widget? suffix,
  30. Widget? suffixIcon,
  31. void onTap()?,
  32. void lostFocus(
    1. Decimal?
    )?,
  33. bool required = true,
  34. bool clearOnCancel = true,
  35. int? sizeExtraSmall,
  36. int? sizeSmall,
  37. int? sizeMedium,
  38. int? sizeLarge,
  39. int? sizeExtraLarge,
  40. double? minHeight,
  41. 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,
});