selectChainedDocumentOption method
void
selectChainedDocumentOption(
- Map<String, dynamic>? option
)
Implementation
void selectChainedDocumentOption(Map<String, dynamic>? option) {
_selectedChainedDocumentOption =
option == null ? null : Map<String, dynamic>.from(option);
final internalName = _selectedChainedDocumentOption?['internalName'];
if (internalName is String && internalName.isNotEmpty) {
_documentType = internalName;
} else {
final activeKey = _activeChainedDocument?['key'];
if (activeKey is String && activeKey.isNotEmpty) {
_documentType = activeKey;
}
}
notifyListeners();
}