VerificationCode constructor
const
VerificationCode({
- Key? key,
- required ValueChanged<
String> onCompleted, - required ValueChanged<
bool> onEditing, - TextInputType keyboardType = TextInputType.number,
- int length = 4,
- Color? cursorColor,
- double itemSize = 50,
- Color? underlineColor,
- Color? underlineUnfocusedColor,
- bool fullBorder = false,
- Color? fillColor,
- double? underlineWidth,
- TextStyle textStyle = const TextStyle(fontSize: 25.0),
- bool autofocus = false,
- Widget? clearAll,
- Stream<
bool> ? pasteStream, - bool isSecure = false,
- bool digitsOnly = false,
- EdgeInsets margin = EdgeInsets.zero,
- EdgeInsets? padding,
Implementation
const VerificationCode({
Key? key,
required this.onCompleted,
required this.onEditing,
this.keyboardType = TextInputType.number,
this.length = 4,
this.cursorColor,
this.itemSize = 50,
this.underlineColor,
this.underlineUnfocusedColor,
this.fullBorder = false,
this.fillColor,
this.underlineWidth,
this.textStyle = const TextStyle(fontSize: 25.0),
this.autofocus = false,
this.clearAll,
this.pasteStream,
this.isSecure = false,
this.digitsOnly = false,
this.margin = EdgeInsets.zero,
this.padding,
}) : super(key: key);