getMetaBox static method

Future<CollectionBox<String>?> getMetaBox(
  1. String env
)

Retrieves the shared metadata box if metadata is enabled for the environment. All environments share a single _meta box with namespaced keys {env}::{key}.

Implementation

static Future<CollectionBox<String>?> getMetaBox(String env) async {
  final config = HHImmutableConfig.instances[env];
  if (config == null || !config.usesMeta) {
    return null;
  }
  return getBox('_meta');
}