CustomRadioButton constructor
CustomRadioButton({
- List<
String> ? buttonLables, - List? buttonValues,
- dynamic radioButtonValue(
- dynamic,
- int
- double? buttonWidth,
- Color? buttonColor,
- Color? selectedColor,
- double buttonHeight = 35,
- bool horizontal = false,
- bool enableShape = false,
- double elevation = 10,
- ShapeBorder? customShape,
- double fontSize = 15,
- double lineSpace = 5,
- double buttonSpace = 5,
- Color buttonBorderColor = const Color(0xFF2594B22B),
- Color unselectedButtonBorderColor = const Color(0xFF2594B22B),
- Color textColor = Colors.black,
- Color selectedTextColor = Colors.white,
- int initialSelection = 0,
Implementation
CustomRadioButton({
this.buttonLables,
this.buttonValues,
this.radioButtonValue,
this.buttonWidth,
this.buttonColor,
this.selectedColor,
this.buttonHeight = 35,
this.horizontal = false,
this.enableShape = false,
this.elevation = 10,
this.customShape,
this.fontSize = 15,
this.lineSpace = 5,
this.buttonSpace = 5,
this.buttonBorderColor = const Color(0xFF2594B22B),
this.unselectedButtonBorderColor = const Color(0xFF2594B22B),
this.textColor = Colors.black,
this.selectedTextColor = Colors.white,
this.initialSelection=0,
}) : assert(buttonLables!.length == buttonValues!.length),
assert(buttonLables!.length > initialSelection),
assert(buttonColor != null),
assert(selectedColor != null);