AppConsentCheckbox constructor

const AppConsentCheckbox({
  1. Key? key,
  2. String text = "I agree to the terms and conditions",
  3. TextStyle textStyle = const TextStyle(fontSize: 14.0, color: Colors.black),
  4. 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);