AlfredWorkflow class final
- Available Extensions
Constructors
-
AlfredWorkflow({AlfredCache<
AlfredItems> ? cache}) - Builds an AlfredWorkflow
Properties
- cacheKey ↔ String?
-
getter/setter pair
- disableAlfredSmartResultOrdering ↔ bool
-
Alfred learns to prioritise item results like he learns any other, meaning
the order in which your workflow results are presented will be based on
Alfred's knowledge (using the item UID) and not the order your script
returns the items.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addItem(
AlfredItem item, {bool toBeginning = false}) → Future< void> -
Add single
item
-
addItems(
List< AlfredItem> items) → Future<void> -
Add multiple
items
-
clearItems(
) → Future< void> - Delete all AlfredItem.
-
getItems(
) → Future< AlfredItems?> - Always use this to check for any AlfredItems.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
{AlfredItem? addToBeginning, AlfredItem? addToEnd, bool toStdout = true}) → Future< void> - Use this convenience method to print the AlfredItems in JSON format to stdout.
-
toJsonString(
{AlfredItem? addToBeginning, AlfredItem? addToEnd}) → Future< String> -
Returns a JSON
String
representation of the AlfredItem items. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited