JuiOptionBase constructor
JuiOptionBase({
- Key? key,
- required JuiOptionType juiOptionType,
- String? title,
- required ValueChanged? onChanged,
- required dynamic value,
- dynamic groupValue,
- bool? disabled,
- bool center = false,
- EdgeInsets? padding,
- 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);