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

A Dart client for the Vexilla Feature Flag System.

example/vexilla_client_example.dart

import 'package:vexilla_client/vexilla_client.dart';

void main() async {
  var client = VexillaClient(
      'dev',
      'https://BUCKET_NAME.s3-website-AWS_REGION.amazonaws.com',
      'b7e91cc5-ec76-4ec3-9c1c-075032a13a1a');

  var flags = await client.fetchFlags('features.json');

  client.setFlags(flags);

  if (client.should('FEATURE_NAME')) {
    print('User should be able to use a feature.');
  }
  ;
}
0
likes
30
pub points
0%
popularity

Publisher

verified publishervexilla.dev

A Dart client for the Vexilla Feature Flag System.

Homepage

License

MIT (license)

Dependencies

http

More

Packages that depend on vexilla_client