of static method

Implementation

static ThemeModeSelectorThemeData of(BuildContext context) {
  var theme =
      context.dependOnInheritedWidgetOfExactType<ThemeModeSelectorTheme>();
  return theme?.data ?? ThemeModeSelectorThemeData();
}