ghosttyTerminalNotifySelectionContent<SelectionT> function
- required SelectionT? selection,
- required String resolveText(
- SelectionT selection
- required void onSelectionContentChanged(
- GhosttyTerminalSelectionContent<
SelectionT> ? content
- GhosttyTerminalSelectionContent<
Emits shared terminal selection-content callbacks using a text resolver.
Implementation
void ghosttyTerminalNotifySelectionContent<SelectionT>({
required SelectionT? selection,
required String Function(SelectionT selection) resolveText,
required void Function(GhosttyTerminalSelectionContent<SelectionT>? content)?
onSelectionContentChanged,
}) {
onSelectionContentChanged?.call(
ghosttyTerminalSelectionContentFor<SelectionT>(
selection,
resolveText: resolveText,
),
);
}