CustomOtpField constructor
const
CustomOtpField({
- required dynamic onChange(),
- required BuildContext buildContext,
- Key? key,
- Color? activeColor,
- Color? activeFillColor,
- int? animationDuration,
- Color? backgroundColor,
- double? borderRadius,
- double? borderWidth,
- Color? inactiveColor,
- Color? inactiveFillColor,
- TextInputType? keyboardType,
- Color? selectedColor,
- Color? selectedFillColor,
- PinCodeFieldShape? shape,
- bool? isObscure,
- int? length,
- String? obscureText,
- AnimationType? animationType,
Implementation
const CustomOtpField({
required this.onChange,
required this.buildContext,
Key? key,
this.activeColor,
this.activeFillColor,
this.animationDuration,
this.backgroundColor,
this.borderRadius,
this.borderWidth,
this.inactiveColor,
this.inactiveFillColor,
this.keyboardType,
this.selectedColor,
this.selectedFillColor,
this.shape,
this.isObscure,
this.length,
this.obscureText,
this.animationType,
}) : super(key: key);