theme property

ThemeData get theme

give access to Theme.of(context)

Implementation

ThemeData get theme {
  ThemeData theme = ThemeData.fallback();
  if (context != null) {
    theme = Theme.of(context!);
  }
  return theme;
}