CheckboxWithUserPrivacy constructor
const
CheckboxWithUserPrivacy({
- Key? key,
- required bool value,
- ValueChanged<
bool?> ? onChanged, - GestureTapCallback? onUserAgreementTap,
- GestureTapCallback? onPrivacyPolicyTap,
- OutlinedBorder? shape,
- Color? color = UCS.mainBlack,
- double fontSize = 12,
- List<
String> texts = const ['我已阅读并同意', '《用户协议》', '和', '《隐私政策》'], - 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);