CustomOtpField constructor

const CustomOtpField({
  1. required dynamic onChange(
    1. String
    ),
  2. required BuildContext buildContext,
  3. Key? key,
  4. Color? activeColor,
  5. Color? activeFillColor,
  6. int? animationDuration,
  7. Color? backgroundColor,
  8. double? borderRadius,
  9. double? borderWidth,
  10. Color? inactiveColor,
  11. Color? inactiveFillColor,
  12. TextInputType? keyboardType,
  13. Color? selectedColor,
  14. Color? selectedFillColor,
  15. PinCodeFieldShape? shape,
  16. bool? isObscure,
  17. int? length,
  18. String? obscureText,
  19. 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);