get method Null safety
- String label
Retrieves a SchemaDocument
from the Bucket by label
Implementation
Future<SchemaDocument?> get(String label) async {
await refresh();
final doc = _cachedDocs.firstWhere((element) => element.label == label, orElse: () => SchemaDocument());
return doc.hasCid() ? doc : null;
}