envContent static method

  1. @Deprecated('Migrated to install.yaml publish:; will be removed in V2')
String envContent({
  1. required String appName,
})

Generates a .env template file with sensible defaults.

appName is written as the default value for APP_NAME.

Implementation

@Deprecated('Migrated to install.yaml publish:; will be removed in V2')
static String envContent({required String appName}) {
  return StubLoader.replace(StubLoader.load('install/env'), {
    'appName': appName,
  });
}