Unleash class
Properties
- context ↔ Context?
-
Unleash Context
https://docs.getunleash.io/user_guide/unleash_context
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → UnleashSettings
-
final
Methods
-
dispose(
) → void - Cancels all periodic actions of this Unleash instance
-
isEnabled(
String toggleName, {bool defaultValue = false, Context? localContext}) → bool -
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
-
init(
UnleashSettings settings, {UnleashClient? client, UpdateCallback? onUpdate, ToggleBackup? toggleBackup}) → Future< Unleash> -
Initializes an
Unleash
instance, registers it at the backend and starts to load the feature toggles.settings
are used to specify the backend and various other settings. Aclient
can be used for example to further configure http headers according to your needs.