CheckboxWithUserPrivacy constructor

const CheckboxWithUserPrivacy({
  1. Key? key,
  2. required bool value,
  3. ValueChanged<bool?>? onChanged,
  4. GestureTapCallback? onUserAgreementTap,
  5. GestureTapCallback? onPrivacyPolicyTap,
  6. OutlinedBorder? shape,
  7. Color? color = UCS.mainBlack,
  8. double fontSize = 12,
  9. List<String> texts = const ['我已阅读并同意', '《用户协议》', '和', '《隐私政策》'],
  10. Color? mainColor,
})

Implementation

const CheckboxWithUserPrivacy(
    {super.key,
    required this.value,
    this.onChanged,
    this.onUserAgreementTap,
    this.onPrivacyPolicyTap,
    this.shape,
    this.color = UCS.mainBlack,
    this.fontSize = 12,
    this.texts = const ['我已阅读并同意', '《用户协议》', '和', '《隐私政策》'],
    this.mainColor})
    : assert(texts.length == 4);