ApiUrls class
Manages the base URLs and named route tree for the API.
Resolves dotted names (e.g. 'auth.login') to full URL strings,
automatically switching between production and development base URLs
depending on kDebugMode.
Constructors
Properties
- baseMediaUrl → String
-
Production base URL for media files.
final
- baseMediaUrlDev → String
-
Development base URL for media files.
final
- baseUrl → String
-
Production base URL for API endpoints.
final
- baseUrlDev → String
-
Development base URL for API endpoints.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
urls
→ List<
BaseUrl> -
The list of registered URL trees, including built-in authUrls.
final
Methods
-
getUrl(
String name) → String -
Resolves a dotted
name(e.g.'auth.login') to a full URL string. -
mediaUrl(
String path) → String -
Builds a full media URL from a relative
path. -
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