index property

int? index
final

Pass index number if you need it on tap using getIndex function

The pupose of index number is to help you when there are for example multi-user based radio buttons and you need to know which one clicked. So, for this kind of index based situation you can use it if needed.

Code Example :

WidgetRadioButton(
  title: "Male",
  value: "male",
  index: 1,
  getIndex: (index) {
    print(index);
  },
  onTap: (value) {
    print(value);
  },
 )

Implementation

final int? index;