theme property

ThemeData theme

Returns the theme data from the closest material.Theme ancestor.

context.theme is equivalent to material.Theme.of.

Implementation

material.ThemeData get theme {
  return material.Theme.of(this);
}