theme property

ThemeData? theme

The ThemeData to use when generating golden tests.

If no ThemeData is provided, the enclosing AlchemistConfig's theme will be used. If that is also null, the default ThemeData.light will be used.

Note: when obscureText is true, tests are always rendered in the "Ahem" font family to ensure consistent results across platforms. In other words, the font family of the theme will be ignored.

Implementation

ThemeData? get theme => _theme;