getter method
Retrieves a value of type T
from SharedPreferences.
Returns null if the value doesn't exist or cannot be converted.
Implementation
@override
Future<int?> getter(SharedPreferencesAsync prefs, String key) async {
return await prefs.getInt(key);
}