CodeButton constructor

const CodeButton({
  1. String title = '发送验证码',
  2. String resendTitle = '重新发送',
  3. double width = 105,
  4. required VoidCallback onPressed,
  5. required int coldDownSeconds,
  6. Key? key,
})

Implementation

const CodeButton({
  this.title = '发送验证码',
  this.resendTitle = '重新发送',
  this.width = 105,
  required this.onPressed,
  required this.coldDownSeconds,
  Key? key,
}) : super(key: key);