Skill3Environment class
Where the API is. Read from wherever the app keeps its settings
(the library never reads .env itself).
Constructors
-
Skill3Environment({String? apiUrl, List<
String> apiUrls = const [], String? apiUrlSystem, Map<String, String> customApiUrl = const {}, String? defaultDomain, Skill3RequestDefaults authDomainOption = const Skill3RequestDefaults(), Skill3RequestDefaults authUserOption = const Skill3RequestDefaults()}) -
const
Properties
- apiUrl → String?
-
Default base URL. Falls back to
https://digioneapi.com.final -
apiUrls
→ List<
String> -
Extra base URLs picked by
apiNumber(1-based).final - apiUrlSystem → String?
-
Base URL for "system" calls (auth, refresh, domain).
final
- authDomainOption → Skill3RequestDefaults
-
Used by
authDomainand the renewal when noinclude/queryis given.final - authUserOption → Skill3RequestDefaults
-
Used by sign in and
updateUserwhen noinclude/queryis given.final -
customApiUrl
→ Map<
String, String> -
Base URL per module name, e.g.
{'land': 'https://land.example.com'}.final - defaultDomain → String?
-
Domain sent to
domains/authwhen the site token has to be renewed. Without it the site token is not renewed automatically.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited