theme property

ThemeData get theme

Returns the ThemeData instance for the current context.

Example usage:

Color primaryColor = context.theme.primaryColor;

Implementation

ThemeData get theme => Theme.of(this);