ThemeData constructor Null safety

const ThemeData(
  1. {bool? applyElevationOverlayColor,
  2. TargetPlatform? platform,
  3. bool? useMaterial3,
  4. VisualDensity? visualDensity,
  5. Brightness? brightness,
  6. Color? canvasColor,
  7. Color? cardColor,
  8. ColorScheme? colorScheme,
  9. Color? colorSchemeSeed,
  10. Color? dialogBackgroundColor,
  11. Color? disabledColor,
  12. Color? dividerColor,
  13. Color? focusColor,
  14. Color? highlightColor,
  15. Color? hintColor,
  16. Color? hoverColor,
  17. Color? indicatorColor,
  18. Color? primaryColor,
  19. Color? primaryColorDark,
  20. Color? primaryColorLight,
  21. MaterialColor? primarySwatch,
  22. Color? scaffoldBackgroundColor,
  23. Color? secondaryHeaderColor,
  24. Color? shadowColor,
  25. Color? splashColor,
  26. Color? unselectedWidgetColor,
  27. String? fontFamily,
  28. List<String>? fontFamilyFallback,
  29. String? package,
  30. TextTheme? textTheme}
)

Implementation

const factory ThemeData({
  bool? applyElevationOverlayColor,
  TargetPlatform? platform,
  bool? useMaterial3,
  VisualDensity? visualDensity,
  Brightness? brightness,
  Color? canvasColor,
  Color? cardColor,
  ColorScheme? colorScheme,
  Color? colorSchemeSeed,
  Color? dialogBackgroundColor,
  Color? disabledColor,
  Color? dividerColor,
  Color? focusColor,
  Color? highlightColor,
  Color? hintColor,
  Color? hoverColor,
  Color? indicatorColor,
  Color? primaryColor,
  Color? primaryColorDark,
  Color? primaryColorLight,
  MaterialColor? primarySwatch,
  Color? scaffoldBackgroundColor,
  Color? secondaryHeaderColor,
  Color? shadowColor,
  Color? splashColor,
  Color? unselectedWidgetColor,
  String? fontFamily,
  List<String>? fontFamilyFallback,
  String? package,
  TextTheme? textTheme,
}) = _ThemeData;