BadRadio<Value> constructor

const BadRadio<Value>({
  1. Key? key,
  2. required int activeIndex,
  3. required ValueChanged<int> onTap,
  4. required Iterable<Value> values,
  5. required Widget builder(
    1. Value value
    ),
  6. Widget activeBuilder(
    1. Value value
    )?,
  7. double? width,
  8. required double height,
  9. EdgeInsets padding = EdgeInsets.zero,
  10. BoxDecoration? decoration,
  11. double borderRadius = 0.0,
  12. BoxDecoration? activeDecoration,
  13. double? activeBorderRadius,
})

Implementation

const BadRadio({
  super.key,
  required this.activeIndex,
  required this.onTap,
  required this.values,
  required this.builder,
  this.activeBuilder,
  this.width,
  required this.height,
  this.padding = EdgeInsets.zero,
  this.decoration,
  this.borderRadius = 0.0,
  this.activeDecoration,
  this.activeBorderRadius,
}) : assert(values.length > 0, 'Think twice!');