theme property
ThemeData
get
theme
Returns the current ThemeData of the context.
This property retrieves the ThemeData
of the current context,
which contains various theme-related properties like colors, typography, and other styles.
Implementation
ThemeData get theme => Theme.of(this);