getDarkTheme method
Returns the default dark theme if system theme settings are honored and returns getCustomTheme if the system theme settings are not honored.
Implementation
ThemeData getDarkTheme() {
if (useSystem) {
return darkTheme;
} else {
return getCustomTheme();
}
}