expandDetail method
Expands detail content for a specific item key. Automatically clears any active edit item key, ensuring only one view/edit mode is active.
Implementation
void expandDetail(K key, {Map<String, dynamic>? additional, bool clearEditingItem = true}) {
final Map<String, dynamic>? mergedAdditional = additional != null ? {...value.additional, ...additional} : null;
updateState(
who: 'expandDetail',
expandedDetailKey: key,
clearEditingItem: clearEditingItem,
additional: mergedAdditional,
);
}