flutter_dotenv icon indicating copy to clipboard operation
flutter_dotenv copied to clipboard

Concat var with string

Open cesarureno opened this issue 1 year ago • 2 comments

Hello guys, how I can concat var with new string, I try this, but doesn't work

BASE_URL=https://e229-2806-103e-15-22e7-2d18-3eeb-8994-4740.ngrok-free.app/
API_BASE_URL=$BASE_URL+api/

cesarureno avatar Mar 19 '24 19:03 cesarureno

@cesarureno Try like this,

BASE_URL=https://e229-2806-103e-15-22e7-2d18-3eeb-8994-4740.ngrok-free.app/
API_BASE_URL=${BASE_URL}api/

Use ${} for the String concatenation.

developer-nesamani avatar Apr 01 '24 09:04 developer-nesamani