local static method

LocalKeyBuilder local(
  1. String key,
  2. String sharedBy, {
  3. String? namespace,
})

Local key are confined to the client(device)/server it is created. The key does not sync between the local-secondary and the cloud-secondary.

Builds a local key and return a LocalKeyBuilder.

Example: local:phone.wavi@alice

AtKey localKey = AtKey.local('phone',namespace:'wavi').build();

Implementation

static LocalKeyBuilder local(String key, String sharedBy,
    {String? namespace}) {
  return LocalKeyBuilder()
    ..key(key)
    ..namespace(namespace)
    ..sharedBy(sharedBy);
}