SmartCodeField constructor

const SmartCodeField({
  1. required int length,
  2. bool disabled = false,
  3. Key? key,
  4. TextEditingController? pinController,
  5. SmartCodeFieldSize size = SmartCodeFieldSize.m,
  6. dynamic onChanged(
    1. String
    )?,
  7. dynamic onCompleted(
    1. String
    )?,
  8. String? validator(
    1. String?
    )?,
  9. Widget errorBuilder(
    1. String? error,
    2. String? pin
    )?,
})

Implementation

const SmartCodeField({
  required this.length,
  this.disabled = false,
  super.key,
  this.pinController,
  this.size = SmartCodeFieldSize.m,
  this.onChanged,
  this.onCompleted,
  this.validator,
  this.errorBuilder,
});