register method

void register(
  1. SamplingPackage package
)

Register a sampling package.

Implementation

void register(SamplingPackage package) {
  _packages.add(package);
  package.permissions.forEach((permission) =>
      (!_permissions.contains(permission))
          ? _permissions.add(permission)
          : null);
  CAMSDataType.add(package.dataTypes);
  package.onRegister();
}