themeData property

ThemeData get themeData

Implementation

ThemeData get themeData => brightness==Brightness.light ? lightTheme : darkTheme;