CheckButton constructor

CheckButton(
  1. {Key key,
  2. YekongaForm formControl,
  3. @required String name,
  4. @required List<Map<String, dynamic>> options,
  5. dynamic value,
  6. bool isRequired = false,
  7. ValueChanged onChanged,
  8. bool multiple = false,
  9. Color color,
  10. WrapAlignment alignment = WrapAlignment.spaceEvenly,
  11. Color selectedColor = Const.COLOR_PRIMARY,
  12. String dataValue = 'value',
  13. String dataLabel = 'label',
  14. int height = 100,
  15. double margin = 0}
)

Implementation

CheckButton({
  Key key,
  this.formControl,
  @required this.name,
  @required this.options,
  this.value,
  this.isRequired: false,
  this.onChanged,
  this.multiple: false,
  this.color,
  this.alignment: WrapAlignment.spaceEvenly,
  this.selectedColor: Const.COLOR_PRIMARY,
  this.dataValue: 'value',
  this.dataLabel: 'label',
  this.height: 100,
  this.margin: 0,
}) : super(key: key);