verbs property

  1. @override
List<AtomVerb> get verbs
override

Verbs exposed to JS. The bridge installs one JS function per verb on host.<key>. Empty list = no methods (the atom registers but JS calls always fail).

Implementation

@override
List<AtomVerb> get verbs => const [
      AtomVerb('me',
          description: 'The person using this app. () → {uid, kind, unit, '
              'units, tree} | null.'),
      AtomVerb('can',
          description: "Whether the person holds this app's right. "
              '(right, [{unit}]) → bool.'),
      AtomVerb('people',
          description: "The workspace's people. () → [{uid, role, label}]."),
    ];