GoogleMapsInterceptors class
Utility class providing common interceptors for Google Maps APIs
Constructors
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
-
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
Static Methods
-
customHeadersInterceptor(
Map< String, String> headers) → Interceptor - Creates a custom header interceptor that adds headers to all requests
-
debugInterceptor(
{bool logRequest = true, bool logResponse = true, bool logHeaders = true, bool logBody = true, String prefix = '[Google Maps API]'}) → Interceptor - Creates a debug interceptor that logs all requests and responses
-
rateLimitInterceptor(
{int maxRequestsPerSecond = 10}) → Interceptor - Creates a rate limiting interceptor
-
responseTransformInterceptor<
T> (T transformResponse(dynamic data)) → Interceptor - Creates a response transformation interceptor
-
retryInterceptor(
{int maxRetries = 3, Duration retryDelay = const Duration(seconds: 1), bool retryOnError(DioException)?}) → Interceptor - Creates a retry interceptor that retries failed requests
-
timingInterceptor(
{String prefix = '[Google Maps API]', Duration? slowRequestThreshold}) → Interceptor - Creates a timing interceptor that logs request duration