isRadio property

bool isRadio
final

bool variable for switching between modes CheckBox and Radio

if the isRadio = true, only one button can be selected if the isRadio = false, you can select several at once

Implementation

final bool isRadio;