theme function

ThemeData theme(
  1. BuildContext context
)

theme is called to access all the theme data. Note: if you want to use textTheme from in theme data prefer textTheme if you want to use primary color you can call primaryColor same as for accentColor and scaffoldColor

Implementation

ThemeData theme(BuildContext context) => Theme.of(context);