flutter_split 0.0.2+1 copy "flutter_split: ^0.0.2+1" to clipboard
flutter_split: ^0.0.2+1 copied to clipboard

Unofficial Flutter plugin as a simple wrapper of Split.io API.

This package contains a wrapper of Split.io. This is an UNOFFICIAL pub for Flutter.

Usage #

To use this plugin, add split_view as a dependency in your pubspec.yaml file.

Create Split #

Create a Split in your organization given a traffic type. (see more)

final mySplit = await splitApi.createSplit(name: 'your_split_name');
print('Created split: ${mySplit.toString()}');

Get Split #

Retrieves the Split. (see more)

final split = await splitApi.getSplit(name: 'your_split_name');
print(split.toString());

Delete Split #

Delete a Split from your organization. This will automatically unconfigure the Split Definition from all environments. (see more)

await splitApi.deleteSplit(name: 'your_split_name');

List Split Definitions #

Retrieves the Split Definitions given an environment. (see more)

final splitDefinitionList = splitApi.getSplitDefinitionList();
print(splitDefinitionList);

List Split Names #

Retrieves the Splits for an organization. (see more)

final splitNames = splitApi.listSplitsName();
print(splitNames);

Get Split Definition #

Retrieves a Split Definition given the name and the environment. (see more)

final mySplitDefinition = splitApi.getSplitDefinition('your_split_name');
print(mySplitDefinition);
2
likes
150
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

Unofficial Flutter plugin as a simple wrapper of Split.io API.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, http

More

Packages that depend on flutter_split