dev_base_url 0.2.0
dev_base_url: ^0.2.0 copied to clipboard
Resolves your dev backend base URL per platform — Android emulator, iOS simulator, web, desktop or physical device — with sync access after a one-time async prepare. Ideal for DI containers.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add dev_base_urlThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
dev_base_url: ^0.2.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dev_base_url/dev_base_url.dart';