ProxyLocalDataSourceImpl class
Implementation of ProxyLocalDataSource using SharedPreferences
- Implemented types
Constructors
- ProxyLocalDataSourceImpl.new({ })
-
Creates a new ProxyLocalDataSourceImpl with the given
sharedPreferences
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
SharedPreferences instance for storing data
final
Methods
-
cacheProxies(
List< ProxyModel> proxies) → Future<void> -
Caches a list of proxies
override
-
cacheValidatedProxies(
List< ProxyModel> proxies) → Future<void> -
Caches a list of validated proxies
override
-
getCachedProxies(
) → Future< List< ProxyModel> > -
Gets the cached proxies
override
-
getCachedValidatedProxies(
) → Future< List< ProxyModel> > -
Gets the cached validated proxies
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- cachedProxiesKey → const String
- Key for storing proxies in SharedPreferences
- cachedValidatedProxiesKey → const String
- Key for storing validated proxies in SharedPreferences