ProxyAnalyticsServiceImpl class

Implementation of ProxyAnalyticsService that uses SharedPreferences for storage

Implemented types

Constructors

ProxyAnalyticsServiceImpl.new({required SharedPreferences sharedPreferences})
Creates a new ProxyAnalyticsServiceImpl with the given sharedPreferences

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAnalytics() Future<ProxyAnalytics>
Gets the current analytics data
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordProxyFetch(List<Proxy> proxies) Future<void>
Records a proxy fetch operation
override
recordProxyValidation(List<Proxy> proxies, List<bool> results) Future<void>
Records a proxy validation operation
override
recordRequest(Proxy proxy, bool success, int? responseTime, String source) Future<void>
Records a request made through a proxy
override
resetAnalytics() Future<void>
Resets the analytics data
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited