Requirements
- Dart SDK >=3.0.0
- Works on Flutter (mobile, web, desktop) and Dart CLI
Install
Add to your pubspec.yaml:
Then run:
Or for Flutter projects:
First Call
Configuration
| Option | Type | Default | Description |
|---|
apiKey | String? | null | Your API key (required for authenticated endpoints) |
baseUrl | String | Production URL | Override for dev/staging environment |
timeout | Duration | Duration(seconds: 30) | Per-request HTTP timeout |
maxRetries | int | 3 | Retries on 429/5xx responses |
Environment Variable
Never hardcode your API key in source code or commit it to version control.
Verify the Install