INNER CODE UNIT · Dart
newIndex
reqable/re-editor · lib/src/_code_autocomplete.dart:156
newIndex = value.prompts.length - 1;
} else if (newIndex >= value.prompts.length) {
newIndex = 0;
}
_notifier?.value = value.copyWith(
index: newIndex,
);
return intent;
},
);
_selectAction = _CodeAutocompleteAction<CodeShortcutNewLineIntent>(
onInvoke: (intent) {
final CodeAutocompleteEditingValue? value = _notifier?.value;
if (value == null) {
return null;
}
_onAutocomplete?.call(value.autocomplete);
return intent;