createBundle method

Future<Bundle> createBundle(
  1. String bundleName, {
  2. Map<String, String>? metadata,
})

Creates a new bundle within this space.

final characterBundle = await characters.createBundle('main-chars');

Implementation

Future<Bundle> createBundle(
  String bundleName, {
  Map<String, String>? metadata,
}) async {
  final response = await client.createBundle(path, bundleName, metadata: metadata);
  return Bundle(response, client);
}