setEntrypoint method

void setEntrypoint(
  1. TemplateFile entrypoint
)

Set the main entrypoint of this template. This is the 'most important' file of this template. An IDE might use this information to open this file after the user's project is generated.

Implementation

void setEntrypoint(TemplateFile entrypoint) {
  if (_entrypoint != null) throw StateError('entrypoint already set');
  if (entrypoint == null) throw StateError('entrypoint is null');
  _entrypoint = entrypoint;
}