create method

Future<ApiKey> create(
  1. String name
)

Creates a new API key with the given name. The value of the returned key must be persisted as this is the only time it is available.

Implementation

Future<ApiKey> create(String name) async {
  _user._ensureLoggedIn('create an API key');

  return realmCore.createApiKey(_user, name);
}