init method

  1. @override
Future<void> init()
override

Implementation

@override
Future<void> init() async {
  // dotenv's mergeWith would let these override the file, so add them
  // only for keys the file doesn't set.
  await dotenv.load(fileName: fileName);
  final env = dotenv.env;
  for (final entry in defaults.entries) {
    env.putIfAbsent(entry.key, () => entry.value);
  }
}