TDCheckbox constructor
const
TDCheckbox({
- String? id,
- Key? key,
- String? title,
- String? subTitle,
- bool enable = true,
- bool checked = false,
- int? titleMaxLine,
- int? subTitleMaxLine = 1,
- IconBuilder? customIconBuilder,
- ContentBuilder? customContentBuilder,
- double? insetSpacing = 16,
- TDCheckboxStyle? style,
- double? spacing,
- Color? backgroundColor,
- TDCheckBoxSize size = TDCheckBoxSize.small,
- bool cardMode = false,
- bool showDivider = true,
- TDContentDirection contentDirection = TDContentDirection.right,
- 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);