get method

  1. @override
Object? get(
  1. Token name
)
override

Implementation

@override
Object? get(Token name) {
   switch(name.lexeme){
     case 'clear':
       return _sharedPreferences.clear;
     case 'containsKey':
       return _sharedPreferences.containsKey;
     case 'get':
       return _sharedPreferences.get;
     case 'getBool':
      return _sharedPreferences.getBool;
     case 'getDouble':
      return _sharedPreferences.getDouble;
     case 'getInt':
      return _sharedPreferences.getInt;
     case 'getKeys':
      return _sharedPreferences.getKeys;
     case 'getString':
      return _sharedPreferences.getString;
     case 'getStringList':
      return _sharedPreferences.getStringList;
     case 'reload':
      return _sharedPreferences.reload;
     case 'setInt':
      return _sharedPreferences.setInt;
     case 'setString':
      return _sharedPreferences.setString;
     case'setStringList':
      return _sharedPreferences.setStringList;
   }
}