FlutterCustomOtpTextField constructor

FlutterCustomOtpTextField({
  1. Key? key,
  2. bool enabled = true,
  3. TextEditingController? controller,
  4. bool autofocus = false,
  5. required String otpCode,
  6. void onChanged(
    1. String value
    )?,
  7. bool isFourDigit = false,
  8. TextStyle? style,
  9. double elevation = 2.0,
  10. Color? color,
  11. RoundedRectangleBorder? shape,
})

Implementation

FlutterCustomOtpTextField({
  Key? key,
  this.enabled = true,
  this.controller,
  this.autofocus = false,
  required this.otpCode,
  this.onChanged,
  this.isFourDigit = false,
  this.style,
  this.elevation = 2.0,
  this.color,
  this.shape,
}) : super(key: key);