PlaybookRegistry class abstract final

The playbooks registered with Nylo, and the names they run by.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Properties

playbooks → Map<String, Playbook Function()>
The playbooks registered on the running Nylo instance.
no setter

Static Methods

find(String name) → Playbook?
The registered playbook called name (or its class name), or null.
nameFromClass(String className) → String
SignUpPlaybook, SignUp and sign-up all become sign_up.
nameOf(Playbook playbook) → String
The name playbook runs by: its key in the registered playbooks, otherwise its own Playbook.name, otherwise its class name in snake case without Playbook (SignUpPlaybook is sign_up).