BadRadio<Value> constructor
const
BadRadio<Value> ({
- Key? key,
- required int activeIndex,
- required ValueChanged<
int> onTap, - required Iterable<
Value> values, - required Widget builder(
- Value value
- Widget activeBuilder(
- Value value
- double? width,
- required double height,
- EdgeInsets padding = EdgeInsets.zero,
- BoxDecoration? decoration,
- double borderRadius = 0.0,
- BoxDecoration? activeDecoration,
- 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!');