register method
Register a sampling package.
Implementation
void register(SamplingPackage package) {
_combinedSchemas = null;
_packages.add(package);
// for (var permission in package.permissions) {
// if (!_permissions.contains(permission)) _permissions.add(permission);
// }
CarpDataTypes().add(package.samplingSchemes.dataTypes);
// register the package's device in the device registry
DeviceController()
.registerDevice(package.deviceType, package.deviceManager);
// call back to the package
package.onRegister();
}