copyToRootEnv method

Future<File> copyToRootEnv(
  1. File sourceEnv, {
  2. bool isTest = false,
})

Copies a client env file to the root .env for the Flutter build.

Implementation

Future<File> copyToRootEnv(File sourceEnv, {bool isTest = false}) async {
  final targetPath = p.join(projectDir, '.env');
  return await sourceEnv.copy(targetPath);
}