TListCardTheme constructor

const TListCardTheme({
  1. required Color backgroundColor,
  2. required Color selectedBackgroundColor,
  3. required Color disabledBackgroundColor,
  4. required Widget expansionIndicatorBuilder(
    1. bool isExpanded,
    2. bool isDisabled
    ),
  5. required Widget selectionIndicatorBuilder(
    1. bool multiple,
    2. bool isSelected,
    3. bool isDisabled
    ),
  6. required Widget contentBuilder(
    1. String title,
    2. String? subTitle,
    3. String? imageUrl,
    4. bool isSelected,
    5. bool isDisabled,
    ),
  7. bool showSelectionIndicator = true,
  8. EdgeInsets padding = const EdgeInsets.symmetric(vertical: 5, horizontal: 15),
  9. double levelIndentation = 18.0,
})

Creates a list card theme.

Implementation

const TListCardTheme({
  required this.backgroundColor,
  required this.selectedBackgroundColor,
  required this.disabledBackgroundColor,
  required this.expansionIndicatorBuilder,
  required this.selectionIndicatorBuilder,
  required this.contentBuilder,
  this.showSelectionIndicator = true,
  this.padding = const EdgeInsets.symmetric(vertical: 5, horizontal: 15),
  this.levelIndentation = 18.0,
});