theme property

ThemeData get theme

give access to Theme.of(context)

Implementation

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