TDCheckbox constructor

const TDCheckbox({
  1. String? id,
  2. Key? key,
  3. String? title,
  4. String? subTitle,
  5. bool enable = true,
  6. bool checked = false,
  7. int? titleMaxLine,
  8. int? subTitleMaxLine = 1,
  9. IconBuilder? customIconBuilder,
  10. ContentBuilder? customContentBuilder,
  11. double? insetSpacing = 16,
  12. TDCheckboxStyle? style,
  13. double? spacing,
  14. Color? backgroundColor,
  15. TDCheckBoxSize size = TDCheckBoxSize.small,
  16. bool cardMode = false,
  17. bool showDivider = true,
  18. TDContentDirection contentDirection = TDContentDirection.right,
  19. OnCheckValueChanged? onCheckBoxChanged,
})

Implementation

const TDCheckbox(
    {this.id,
    Key? key,
    this.title,
    this.subTitle,
    this.enable = true,
    this.checked = false,
    this.titleMaxLine,
    this.subTitleMaxLine = 1,
    this.customIconBuilder,
    this.customContentBuilder,
    this.insetSpacing = 16,
    this.style,
    this.spacing,
    this.backgroundColor,
    this.size = TDCheckBoxSize.small,
    this.cardMode = false,
    this.showDivider = true,
    this.contentDirection = TDContentDirection.right,
    this.onCheckBoxChanged})
    : super(key: key);