getUserPreferencesSync static method
Once we initialized with main.dart, we don't need the "async".
Implementation
static UserPreferences getUserPreferencesSync() => _instance!;
Once we initialized with main.dart, we don't need the "async".
static UserPreferences getUserPreferencesSync() => _instance!;