registerOnPick method
Fired when a completion is picked. Passed the completion value.
The completion HintResult is not guaranteed to be the same object
instance as the one provided by the HintResults
.
Implementation
void registerOnPick(HintsResultsPickCallback onPick) {
Hints._cm!.callMethod('on', [
toProxy(),
'pick',
(completion) {
if (completion is String) {
onPick(HintResult(completion));
} else {
onPick(HintResult.fromProxy(completion));
}
}
]);
}