ghosttyTerminalSelectionContentFor<SelectionT> function
- SelectionT? selection, {
- required String resolveText(
- SelectionT selection
Builds shared selection callback payloads from terminal text extraction.
Implementation
GhosttyTerminalSelectionContent<SelectionT>?
ghosttyTerminalSelectionContentFor<SelectionT>(
SelectionT? selection, {
required String Function(SelectionT selection) resolveText,
}) {
if (selection == null) {
return null;
}
return GhosttyTerminalSelectionContent<SelectionT>(
selection: selection,
text: resolveText(selection),
);
}