OtpTimerButton constructor

const OtpTimerButton(
  1. {Key? key,
  2. required VoidCallback? onPressed,
  3. required Text text,
  4. ProgressIndicator? loadingIndicator,
  5. required int duration,
  6. OtpTimerButtonController? controller,
  7. double? height,
  8. Color? backgroundColor,
  9. Color? textColor,
  10. Color? loadingIndicatorColor,
  11. ButtonType buttonType = ButtonType.elevated_button,
  12. double? radius}
)

Implementation

const OtpTimerButton(
    {Key? key,
    required this.onPressed,
    required this.text,
    this.loadingIndicator,
    required this.duration,
    this.controller,
    this.height,
    this.backgroundColor,
    this.textColor,
    this.loadingIndicatorColor,
    this.buttonType = ButtonType.elevated_button,
    this.radius})
    : super(key: key);