addPlaybooks method
Register playbooks that metro live:run playbook <name> runs inside
the app.
Keys are the names you run them by. Ignored in release builds, where playbooks don't run.
nylo.addPlaybooks({
'sign_up_to_dashboard': SignUpToDashboardPlaybook.new,
});
Implementation
void addPlaybooks(Map<String, Playbook Function()> playbooks) {
if (!Playbook.isAvailable) return;
_playbooks.addAll(playbooks);
}