gredu_unleash 0.0.2 copy "gredu_unleash: ^0.0.2" to clipboard
gredu_unleash: ^0.0.2 copied to clipboard

A simple tools for feature toggle. This is a simple helper for using Unleash Feature Flag

GREDU-UNLEASH #

Tools for toggling features that we can enable or disable a feature.

Add to your pubspec.yaml

dependencies:
  gredu_unleash: x.y.z

Initialize on your main.dart, we recommended use it as singleton

final config = GreduUnleashConfig(
          proxyUrl: <Proxy URL>,
          headers: <Headers>
      );

final unleash = GreduUnleash.init(config);

*Notes : Polling Interval is optional, but we don't use it for now

Check is a feature enabled :

    if (unleash.isFeatureEnabled("payment")) {
      // Enable feature
    } else {
      // Disable feature
    }

More Information : https://docs.getunleash.io/

2
likes
100
pub points
12%
popularity

Publisher

unverified uploader

A simple tools for feature toggle. This is a simple helper for using Unleash Feature Flag

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, http, lints

More

Packages that depend on gredu_unleash