create static method

Future<Stack> create(
  1. String stackName,
  2. LocalWorkspace workspace
)

Creates a new stack.

Implementation

static Future<Stack> create(
  String stackName,
  LocalWorkspace workspace,
) async {
  await workspace.createStackInWorkspace(stackName);
  return Stack(stackName, workspace);
}