PinOtpField constructor

const PinOtpField({
  1. Key? key,
  2. required int length,
  3. required OtpFieldDecorator decorator,
  4. bool obscure = false,
  5. String hintChar = '',
  6. String? validator(
    1. String value
    )?,
  7. TextStyle errorStyle = const TextStyle(color: Colors.red, fontSize: 14),
  8. required ValueChanged<String> onCompleted,
})

Implementation

const PinOtpField({
  Key? key,
  required this.length,
  required this.decorator,
  this.obscure = false,
  this.hintChar = '',
  this.validator,
  this.errorStyle = const TextStyle(color: Colors.red, fontSize: 14),
  required this.onCompleted,
}) : super(key: key);