Skip to content

Commit 22b61c5

Browse files
committed
Add Dev Env Values Custom Code
1 parent ff068bb commit 22b61c5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/ff-concepts/adding-customization/common-examples.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,3 +358,16 @@ Future getSchema(StateStruct? syncStatus) async {
358358
}
359359
```
360360
361+
### Get Dev Environment Values in Custom Code
362+
363+
Similar to the `FFLibraryValues` class, if you are using **[Dev Environments](../../testing-deployment-publishing/development-environments/development-environments.md)** in your FlutterFlow project, a new class called `FFDevEnvironmentValues` will be created. This class can also be accessed from custom code if needed. It is generated based on the environment selected by the user at the time of code generation.
364+
365+
To access any Dev Environment values in custom code, simply use:
366+
367+
```js
368+
Future getWebhookId() async {
369+
// Add your function code here!
370+
return FFDevEnvironmentValues().webhookId;
371+
}
372+
```
373+

0 commit comments

Comments
 (0)