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

outdated

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

example/main.dart

import 'package:flutter_split/flutter_split.dart';

void main(List<String> arguments) async {
  final splitApi = SplitAPI(
      workspaceId: '17ce8460-7bda-11ec-af45-1699d15ca5a6',
      environmentIdOrName: '17e36bf0-7bda-11ec-af45-1699d15ca5a6',
      apiKey: 'bka80mh5sfuhjptla6o0s6d0gsgravg04uio');

  // List split definitions
  print('List split definitions');
  final splitDefinitionList = await splitApi.getSplitDefinitionList();
  for (var element in splitDefinitionList) {
    print(element.toJson());
  }

  // List split names
  print('List split names');
  final splitNames = await splitApi.listSplitsName();
  print(splitNames);

  // Retrieve split definition given split name.
  print('Retrieve split definition given split name.');
  final mySplitDefinition =
      await splitApi.getSplitDefinition('mailchimp_subscription');
  print(mySplitDefinition.toString());
}
2
likes
0
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on flutter_split