theme property

ThemeData get 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);
}