DoubleInputField constructor

DoubleInputField({
  1. required String name,
  2. double? initialValue = 0,
  3. @Deprecated('Fields should not be aware of their context') void onChanged(
    1. BuildContext context,
    2. 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*'),
          ),
        ],
      );