Generator constructor

Generator({
  1. Engine? mainEngine,
})

Implementation

Generator({Engine? mainEngine}) : engine = mainEngine ?? Engine();