DoubleInputField constructor
DoubleInputField({
- required String name,
- double? initialValue = 0,
- @Deprecated('Fields should not be aware of their context') void onChanged(
- BuildContext context,
- double? value
Implementation
DoubleInputField({
required super.name,
super.initialValue = 0,
@Deprecated('Fields should not be aware of their context') super.onChanged,
}) : super(
type: FieldType.doubleInput,
formatters: [
FilteringTextInputFormatter.allow(
RegExp(r'^-?\d*\.?\d*'),
),
],
);