toThemeData method
Implementation
ThemeData toThemeData() {
return ThemeData(
brightness: brightness,
primaryColor: primaryColor,
scaffoldBackgroundColor: backgroundColor,
appBarTheme: AppBarTheme(color: primaryColor),
colorScheme: ThemeData().colorScheme.copyWith(
secondary: accentColor,
brightness: brightness,
background: backgroundColor),
);
}