ListTileThemeModifier constructor

const ListTileThemeModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. ListTileThemeData? data,
  5. bool? dense,
  6. ShapeBorder? shape,
  7. ListTileStyle? style,
  8. Color? selectedColor,
  9. Color? iconColor,
  10. Color? textColor,
  11. EdgeInsetsGeometry? contentPadding,
  12. Color? tileColor,
  13. Color? selectedTileColor,
  14. bool? enableFeedback,
  15. MaterialStateProperty<MouseCursor?>? mouseCursor,
  16. double? horizontalTitleGap,
  17. double? minVerticalPadding,
  18. double? minLeadingWidth,
})

Creates a list tile theme that defines the color and style parameters for descendant ListTiles.

Only the data parameter should be used. The other parameters are redundant (are now obsolete) and will be deprecated in a future update.

Implementation

const ListTileThemeModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.data,
  this.dense,
  this.shape,
  this.style,
  this.selectedColor,
  this.iconColor,
  this.textColor,
  this.contentPadding,
  this.tileColor,
  this.selectedTileColor,
  this.enableFeedback,
  this.mouseCursor,
  this.horizontalTitleGap,
  this.minVerticalPadding,
  this.minLeadingWidth,
});