ChoiceItem constructor

ChoiceItem({
  1. required double? imgWidth,
  2. required double? imgHeight,
  3. Selector<String>? image,
  4. Selector<String>? text,
  5. Selector<TextStyle>? textStyle,
  6. bool selected = false,
})

Implementation

ChoiceItem({
  required this.imgWidth,
  required this.imgHeight,
  this.image,
  this.text,
  this.textStyle,
  bool selected = false,
})  : assert(imgWidth == null || imgWidth > 0),
      assert(imgHeight == null || imgHeight > 0),
      super(selected);