LiveConfigurationOptions class

Options to configure the LiveConfigurationClient

Constructors

LiveConfigurationOptions({required String connectionEndpoint, Duration cacheTtl = const Duration(hours: 6), ResponseInterpreterCallback? responseInterpreter, Duration connectionTimeout = const Duration(seconds: 10), Map<String, dynamic>? headers})
connectionEndpoint The endpoint where to connect in order to download configuration settings cacheTtl The time to live of the cache before fetching from server again responseInterpreter A custom function used to interpret the response of the remote server while fetching. It defaults to return the Response.bodyBytes property.

Properties

cacheTtl Duration
The time to live of the cache before fetching from server again. Defaults to 6 hours.
final
connectionEndpoint String
The endpoint where to connect in order to download configuration settings
final
connectionTimeout Duration
The timeout of the connection request. Defaults to 10 seconds.
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>?
Any header to attach to the request
final
responseInterpreter ResponseInterpreterCallback?
A custom function used to interpret the response of the remote server while fetching. It defaults to return the Response.bodyBytes property.
final
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 Properties

defaultResponseInterpreter ResponseInterpreterCallback
getter/setter pair