Skip to content

Commit

Permalink
udpate README.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
ramin-deriv committed Nov 24, 2023
1 parent 911e8dc commit 1e4eafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/deriv_env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ bool isInitialized = Env().isInitialized;
Before using any environment variables, you need to intialize the `Env` class and pass it an instnace of the EnvLoader and the path to the file. The `initialize` method loads the variables from a file with the specified filename (default is `.env`).

```dart
await Env().initialize(EnvLoader(), '.env');
await Env().initialize(EnvLoader(filePath: '.env'));
```

The load method expects the file to contain key-value pairs separated by an equals sign (`=`) and each pair separated by a newline character (`\n`). Blank lines and comments (lines starting with a `#`) are ignored.
Expand Down

0 comments on commit 1e4eafb

Please sign in to comment.