Widget.listTile constructor Null safety

const Widget.listTile(
  1. {Key? key,
  2. Widget? leading,
  3. Widget? title,
  4. Widget? subtitle,
  5. Widget? trailing,
  6. @Default(false) bool isThreeLine,
  7. bool? dense,
  8. VisualDensity? visualDensity,
  9. ShapeBorder? shape,
  10. Color? selectedColor,
  11. Color? iconColor,
  12. Color? textColor,
  13. EdgeInsets? contentPadding,
  14. @Default(true) bool enabled,
  15. Callback? onTap,
  16. Callback? onLongPress,
  17. MouseCursor? mouseCursor,
  18. @Default(false) bool selected,
  19. Color? focusColor,
  20. Color? hoverColor,
  21. Color? splashColor,
  22. @Default(false) bool autofocus,
  23. Color? tileColor,
  24. Color? selectedTileColor,
  25. bool? enableFeedback,
  26. double? horizontalTitleGap,
  27. double? minVerticalPadding,
  28. double? minLeadingWidth}
)

Implementation

const factory Widget.listTile({
  Key? key,
  Widget? leading,
  Widget? title,
  Widget? subtitle,
  Widget? trailing,
  @Default(false) bool isThreeLine,
  bool? dense,
  VisualDensity? visualDensity,
  ShapeBorder? shape,
  Color? selectedColor,
  Color? iconColor,
  Color? textColor,
  EdgeInsets? contentPadding,
  @Default(true) bool enabled,
  Callback? onTap,
  Callback? onLongPress,
  MouseCursor? mouseCursor,
  @Default(false) bool selected,
  Color? focusColor,
  Color? hoverColor,
  Color? splashColor,
  @Default(false) bool autofocus,
  Color? tileColor,
  Color? selectedTileColor,
  bool? enableFeedback,
  double? horizontalTitleGap,
  double? minVerticalPadding,
  double? minLeadingWidth,
}) = ListTile;