theme property

  1. @useResult
ThemeData get theme

Returns the ThemeData instance for the current context.

Example usage:

Color primaryColor = context.theme.primaryColor;

Implementation

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