Generator constructor

Generator({
  1. String? templateBasePath,
})

Creates a generator.

templateBasePath is primarily a test seam. Production usage leaves it null so templates are resolved from the installed package.

Implementation

Generator({String? templateBasePath}) : _templateBasePath = templateBasePath;