retrieveActions property

Future<List<SecondaryAction>> Function() retrieveActions
final

Return a list of secondary actions this runner can perform.

If this function returns any SecondaryActions the runner results will have an icon(s) to the right to allow the user to trigger secondary actions for a match.

Example: The runner returns a list files. The primary action will call runAction with no actionId, and perhaps the runner will launch that file. The runner had also returned an SecondaryAction from this function, and when runAction is called with that SecondaryAction's id (by the user clicking the icon in the match or pressing Shift+Enter) the callback can know to run the secondary action on that match, such as perhaps opening that file's containing folder instead.

Implementation

final Future<List<SecondaryAction>> Function() retrieveActions;