SlatePlan class

The output of a planner: a deterministic description of what the CLI intends to do for the chosen backend/service.

auth() / iap() execute the plan by:

  1. running dart pub add for each entry in packagesToAdd;
  2. handing templates to MetroService.createSlate;
  3. (optionally) reading config to template the post-success message.

Tests assert against this value object instead of running the side effects.

Constructors

SlatePlan({required List<String> packagesToAdd, required List<NyTemplate> templates, Object? config})
const

Properties

config Object?
The backend/service-specific slate config that produced templates. Let the runtime template the success message (e.g. "iOS setup needed?") without re-prompting. null for choices that take no input — Basic and Firebase.
final
hashCode int
The hash code for this object.
no setterinherited
packagesToAdd List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
templates List<NyTemplate>
final

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