TDRadio constructor

const TDRadio({
  1. String? id,
  2. Key? key,
  3. String? title,
  4. String? subTitle,
  5. bool enable = true,
  6. int subTitleMaxLine = 1,
  7. int titleMaxLine = 1,
  8. Color? checkedColor,
  9. ContentBuilder? customContentBuilder,
  10. double? spacing,
  11. bool? cardMode,
  12. bool? showDivider,
  13. TDCheckBoxSize size = TDCheckBoxSize.small,
  14. TDRadioStyle radioStyle = TDRadioStyle.circle,
  15. TDContentDirection contentDirection = TDContentDirection.right,
  16. IconBuilder? customIconBuilder,
})

Implementation

const TDRadio({
  String? id,
  Key? key,
  String? title,
  String? subTitle,
  bool enable = true,
  int subTitleMaxLine = 1,
  int titleMaxLine = 1,
  Color? checkedColor,
  ContentBuilder? customContentBuilder,
  double? spacing,
  bool? cardMode,
  bool? showDivider,
  TDCheckBoxSize size = TDCheckBoxSize.small,
  this.radioStyle = TDRadioStyle.circle,
  TDContentDirection contentDirection = TDContentDirection.right,
  IconBuilder? customIconBuilder,
}) : super(
        id: id,
        key: key,
        title: title,
        subTitle: subTitle,
        subTitleMaxLine: subTitleMaxLine,
        enable: enable,
        size: size,
        cardMode: cardMode ?? false,
        showDivider: showDivider ?? true,
        titleMaxLine: titleMaxLine,
        customContentBuilder: customContentBuilder,
        contentDirection: contentDirection,
        spacing: spacing,
        customIconBuilder: customIconBuilder,
      );