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

A simple tools for feature toggle

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
points
24
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple tools for feature toggle

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on gredu_unleash