ApiVersionSource class

Implemented types

Constructors

ApiVersionSource({String? baseUrl, String? apiKey, Map<String, String>? additionalHeaders, bool useNewApiFormat = true, Uri? legacyApiUrl})
Constructor for new API format If baseUrl is not provided, uses the default Relva API URL
ApiVersionSource.legacy({required Uri apiUrl, Map<String, String>? additionalHeaders})
Constructor for legacy API format (backward compatibility)

Properties

additionalHeaders Map<String, String>?
Additional headers to include in the request
final
apiKey String?
API Key for authentication
final
baseUrl String
Base URL of the API (defaults to Relva API)
final
hashCode int
The hash code for this object.
no setterinherited
legacyApiUrl Uri?
Legacy API URL (for backward compatibility)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useNewApiFormat bool
Whether to use the new API endpoint format
final

Methods

checkVersion(PackageInfo packageInfo) Future<VersionStatus?>
override
checkVersionWithResponse(PackageInfo packageInfo) Future<VersionCheckResponse?>
Check version using the new API format Returns VersionCheckResponse with full API response
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