vexilla_client 0.0.1 vexilla_client: ^0.0.1 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.');
}
;
}