TeamAllianceSwitch constructor

const TeamAllianceSwitch(
  1. {Key? key,
  2. required void onChanged(
    1. TeamAlliance alliance
    ),
  3. bool initialValue = false}
)

Implementation

const TeamAllianceSwitch({
  super.key,
  required this.onChanged,
  this.initialValue = false, // false = red, true = blue
});