gen property

Gen get gen

Provides access to the main Generation module.

Automatically initializes the Gen instance with the apiKey if it has not been initialized yet.

Implementation

Gen get gen {
  if (!Gen.instance.isInitialized) {
    Gen.instance.initialize(apiKey);
  }
  return Gen.instance;
}