FastDigitCalculatorField constructor
const
FastDigitCalculatorField({
- Key? key,
- required String labelText,
- Widget? validIcon,
- bool isEnabled = true,
- String? valueText,
- String? placeholderText,
- ValueChanged<
String?> ? onValueChanged, - String? captionText,
- Widget? suffixIcon,
- bool? acceptDecimal = true,
- FastRoundingMethod? roundingMethod = FastRoundingMethod.round,
- bool? acceptNegative = false,
- bool? transformInvalidNumber = true,
Creates a new instance of FastDigitCalculatorField.
labelText is the label of the input field.
isEnabled, and valueText
are optional parameters.
Other optional parameters include placeholderText, onValueChanged,
captionText, suffixIcon, and validIcon.
Implementation
const FastDigitCalculatorField({
super.key,
required this.labelText,
this.validIcon,
this.isEnabled = true,
String? valueText,
this.placeholderText,
this.onValueChanged,
this.captionText,
this.suffixIcon,
bool? acceptDecimal = true,
FastRoundingMethod? roundingMethod = FastRoundingMethod.round,
bool? acceptNegative = false,
bool? transformInvalidNumber = true,
}) : roundingMethod = roundingMethod ?? FastRoundingMethod.round,
valueText = valueText ?? '',
acceptDecimal = acceptDecimal ?? true,
acceptNegative = acceptNegative ?? false,
transformInvalidNumber = transformInvalidNumber ?? true;