ThemeData.dark constructor Null safety

ThemeData.dark(
  1. {bool? useMaterial3}
)

A default dark theme with a teal secondary ColorScheme color.

This theme does not contain text geometry. Instead, it is expected that this theme is localized using text geometry using ThemeData.localize.

Implementation

factory ThemeData.dark({bool? useMaterial3}) => ThemeData(
  brightness: Brightness.dark,
  useMaterial3: useMaterial3,
);