AppConsentCheckbox constructor
const
AppConsentCheckbox({
- Key? key,
- String text = "I agree to the terms and conditions",
- TextStyle textStyle = const TextStyle(fontSize: 14.0, color: Colors.black),
- VoidCallback? onChanged,
Implementation
const AppConsentCheckbox({
Key? key,
this.text = "I agree to the terms and conditions", // Default text
this.textStyle = const TextStyle(
fontSize: 14.0, color: Colors.black), // Default text style
this.onChanged, // Callback when checkbox is toggled
}) : super(key: key);