ListTile constructor Null safety

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

Implementation

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