UnleashSettings class

Constructors

UnleashSettings({required String appName, required String instanceId, required Uri unleashApi, required String apiToken, Map<String, String> customHeaders = const {}, Duration? pollingInterval = const Duration(seconds: 15), Duration? metricsReportingInterval = const Duration(milliseconds: 10000), List<ActivationStrategy>? strategies = const []})
const

Properties

apiToken String
See https://docs.getunleash.io/user_guide/api-token
final
appName String
Name of the application seen by unleash-server.
final
customHeaders Map<String, String>
Additional http headers to add for each HTTP request towards the Unleash API
final
featureUrl Uri
URL to send GET requests to load toggles
no setter
hashCode int
The hash code for this object.
no setterinherited
instanceId String
Instance id for this application (typically hostname, podId or similar)
final
metricsReportingInterval Duration?
Currently unused. At which interval, in milliseconds, will this client be expected to send metrics. Metric reporing is disabled if null.
final
pollingInterval Duration?
See https://unleash.github.io/docs/client_specification#fetching-feature-toggles-polling Polling is disabled if this is null.
final
registerUrl Uri
URL to register this client
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strategies List<ActivationStrategy>?
List of custom activation strategies
final
unleashApi Uri
Should be for example Uri.parse('https://unleash.herokuapp.com/api') or if used with GitLab Uri.parse('https://gitlab.com/api/v4/feature_flags/unleash/42')
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHeaders() Map<String, String>
toString() String
A string representation of this object.
inherited

Operators

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