MListTile constructor
const
MListTile({
- Key? key,
- Widget? leading,
- Widget? title,
- Widget? subtitle,
- Widget? trailing,
- bool isThreeLine = false,
- bool? dense,
- VisualDensity? visualDensity,
- ShapeBorder? shape,
- ListTileStyle? style,
- Color? selectedColor,
- Color? iconColor,
- Color? textColor,
- TextStyle? titleTextStyle,
- TextStyle? subtitleTextStyle,
- TextStyle? leadingAndTrailingTextStyle,
- EdgeInsetsGeometry? contentPadding,
- bool enabled = true,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- ValueChanged<
bool> ? onFocusChange, - MouseCursor? mouseCursor,
- bool selected = false,
- Color? focusColor,
- Color? hoverColor,
- Color? splashColor,
- FocusNode? focusNode,
- bool autofocus = false,
- Color? tileColor,
- Color? selectedTileColor,
- bool? enableFeedback,
- double? horizontalTitleGap,
- double? minVerticalPadding,
- double? minLeadingWidth,
- ListTileTitleAlignment? titleAlignment,
- Color? backgroundColor,
- String? titleText,
- double? height,
- double? tileHeight,
- double? macIconHeight,
- bool trailingOverride = true,
- String? detailText,
- bool showArrow = false,
- Widget? arrow,
Implementation
const MListTile({
super.key,
this.leading,
this.title,
this.subtitle,
this.trailing,
this.isThreeLine = false,
this.dense,
this.visualDensity,
this.shape,
this.style,
this.selectedColor,
this.iconColor,
this.textColor,
this.titleTextStyle,
this.subtitleTextStyle,
this.leadingAndTrailingTextStyle,
this.contentPadding,
this.enabled = true,
this.onTap,
this.onLongPress,
this.onFocusChange,
this.mouseCursor,
this.selected = false,
this.focusColor,
this.hoverColor,
this.splashColor,
this.focusNode,
this.autofocus = false,
Color? tileColor,
this.selectedTileColor,
this.enableFeedback,
this.horizontalTitleGap,
this.minVerticalPadding,
this.minLeadingWidth,
this.titleAlignment,
Color? backgroundColor,
String? titleText,
double? height,
double? tileHeight,
double? macIconHeight,
this.trailingOverride = true,
String? detailText,
this.showArrow = false,
this.arrow,
}) : tileColor = tileColor ?? backgroundColor,
_titleText = titleText,
_detailText = detailText,
_tileHeight = tileHeight ?? height,
_macIconHeight = macIconHeight ?? height,
assert(!isThreeLine || subtitle != null);