PinCode constructor Null safety

PinCode(
  1. {Key? key,
  2. required int numberOfFields,
  3. required double fieldWidth,
  4. required TextStyle style,
  5. required PinCodeStyle fieldStyle,
  6. TextInputType keyboardType = TextInputType.number,
  7. bool isObscure = false,
  8. ValueChanged<String>? onChanged,
  9. ValueChanged<String>? onCompleted}
)

Implementation

PinCode(
    {Key? key,
    required this.numberOfFields,
    required this.fieldWidth,
    required this.style,
    required this.fieldStyle,
    this.keyboardType = TextInputType.number,
    this.isObscure = false,
    this.onChanged,
    this.onCompleted});