From 4ea92887417f3e03b63310891db12a25e290210f Mon Sep 17 00:00:00 2001 From: Vadim Date: Sun, 13 Aug 2023 22:21:00 +0200 Subject: [PATCH] `_inheritFrom` -> `_inheritFromEnumsModel` --- lib/providers/user_preferences_provider.dart | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/providers/user_preferences_provider.dart b/lib/providers/user_preferences_provider.dart index be8771d..91731ab 100644 --- a/lib/providers/user_preferences_provider.dart +++ b/lib/providers/user_preferences_provider.dart @@ -21,19 +21,19 @@ class UserPreferencesProvider extends StatefulWidget { } static Brightness brightnessOf(BuildContext context) { - return _inheritFrom(context, _ListenableAspect.brightness).brightness; + return _inheritFromEnumsModel(context, _ListenableAspect.brightness).brightness; } static DynamicColorState dynamicColorStateOf(BuildContext context) { - return _inheritFrom(context, _ListenableAspect.dynamicColorState).dynamicColorState; + return _inheritFromEnumsModel(context, _ListenableAspect.dynamicColorState).dynamicColorState; } static EvSourceType evSourceTypeOf(BuildContext context) { - return _inheritFrom(context, _ListenableAspect.evSourceType).evSourceType; + return _inheritFromEnumsModel(context, _ListenableAspect.evSourceType).evSourceType; } static SupportedLocale localeOf(BuildContext context) { - return _inheritFrom(context, _ListenableAspect.locale).locale; + return _inheritFromEnumsModel(context, _ListenableAspect.locale).locale; } static MeteringScreenLayoutConfig meteringScreenConfigOf(BuildContext context) { @@ -46,18 +46,18 @@ class UserPreferencesProvider extends StatefulWidget { } static Color primaryColorOf(BuildContext context) { - return _inheritFrom(context, _ListenableAspect.primaryColor).primaryColor; + return _inheritFromEnumsModel(context, _ListenableAspect.primaryColor).primaryColor; } static StopType stopTypeOf(BuildContext context) { - return _inheritFrom(context, _ListenableAspect.stopType).stopType; + return _inheritFromEnumsModel(context, _ListenableAspect.stopType).stopType; } static ThemeType themeTypeOf(BuildContext context) { - return _inheritFrom(context, _ListenableAspect.themeType).themeType; + return _inheritFromEnumsModel(context, _ListenableAspect.themeType).themeType; } - static _EnumsModel _inheritFrom( + static _EnumsModel _inheritFromEnumsModel( BuildContext context, _ListenableAspect aspect, ) {