ArcaneRadio constructor

const ArcaneRadio({
  1. required bool selected,
  2. String? label,
  3. String? description,
  4. ComponentSize size = ComponentSize.md,
  5. ColorVariant color = ColorVariant.primary,
  6. bool disabled = false,
  7. void onSelected()?,
  8. void onTap()?,
  9. Key? key,
})

Implementation

const ArcaneRadio({
  required this.selected,
  this.label,
  this.description,
  this.size = ComponentSize.md,
  this.color = ColorVariant.primary,
  this.disabled = false,
  void Function()? onSelected,
  void Function()? onTap,
  super.key,
}) : _onSelected = onSelected ?? onTap;