AlfredItemMod class final

The AlfredItemMod gives you control over how the modifier keys react.

It can alter the looks of a result (e.g. subtitle, icon) and output a different arg.

Annotations
  • @autoequal
  • @CopyWith()
  • @JsonSerializable(explicitToJson: true)

Constructors

AlfredItemMod({String? arg, String? subtitle, AlfredItemIcon? icon, bool valid = true})
const
AlfredItemMod.fromJson(Map<String, dynamic> json)
factory

Properties

arg String?
The argument which is passed through the workflow to the connected output action.
final
hashCode int
The hash code for this object.
no setterinherited
icon AlfredItemIcon?
The icon displayed in the result row.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
subtitle String?
The subtitle displayed in the result row. This element is optional.
final
valid bool
valid : true | false (optional, default = false)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited