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