JuiOptionBase constructor

JuiOptionBase({
  1. Key? key,
  2. required JuiOptionType juiOptionType,
  3. String? title,
  4. required ValueChanged? onChanged,
  5. required dynamic value,
  6. dynamic groupValue,
  7. bool? disabled,
  8. bool center = false,
  9. EdgeInsets? padding,
  10. bool? isFontBigWeight,
})

Implementation

JuiOptionBase({
  super.key,
  required this.juiOptionType,
  this.title,
  required this.onChanged,
  required this.value,
  this.groupValue,
  this.disabled,
  this.center = false,
  this.padding,
  this.isFontBigWeight,
})  : assert(!juiOptionType.isRadio || value != null),
      assert(!juiOptionType.isCheckbox || onChanged != null),
      titleColor = Colors.black,
      accentColor = const Color(0xFF0070D2);