currentTheme property
ThemeData
get
currentTheme
Implementation
ThemeData get currentTheme {
switch (brightness) {
case Brightness.dark:
return darkTheme;
case Brightness.light:
return lightTheme;
default:
return lightTheme;
}
}