restrictedSchemas property

Set<MSchemaRef> restrictedSchemas
override

Based on current installation, returns a list of schemas that are not allowed because the user has not installed the appropriate plugin

Implementation

Set<MSchemaRef> get restrictedSchemas {
  final installedBundles = bundleState.installedBundleKeys;
  return {
    ..._schemaToBundleKeys.whereEntries((ref, required) {
      if (required.isEmpty) {
        return false;
      } else {
        final anyInstalled = required.any((required) {
          return installedBundles.contains(required);
        });
        return !anyInstalled;
      }
    }).keys,
  };
}