IntInputField constructor

IntInputField({
  1. required String name,
  2. int? initialValue = 0,
  3. @deprecated void onChanged(
    1. BuildContext context,
    2. int? value
    )?,
})

Implementation

IntInputField({
  required super.name,
  super.initialValue = 0,
  @deprecated super.onChanged,
}) : super(
        type: FieldType.intInput,
        formatters: [
          FilteringTextInputFormatter.allow(
            RegExp(r'^-?\d*'),
          ),
        ],
      );