listTemplates method

List<String> listTemplates()

Returns a list of templates for this environment.

If the loader is not specified a StateError is thrown.

Implementation

List<String> listTemplates() {
  if (loader case var loader?) {
    return loader.listTemplates();
  }

  throw StateError('No loader for this environment specified.');
}