FilenApi class

Constructors

FilenApi({Client? client})

Properties

apiKey String?
getter/setter pair
client → Client
The underlying HTTP client (e.g. for direct chunk transfers to egest/ingest hosts). Exposed so callers reuse the same client — important for testing with a mock client.
no setter
debugMode bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

log(String msg) → void
logWebDAV(String message) → void
makeRequest(String method, Uri url, {Map<String, String>? headers, dynamic body, bool useAuth = true, bool isAuthRetry = false, int maxRetries = 3, int retryCount = 0}) Future<Response>
Centralized request with retry logic and exponential backoff.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String endpoint, dynamic body, {bool auth = true}) Future<Map<String, dynamic>>
Convenience POST wrapper that parses JSON and checks status.
refreshToken() Future<void>
Token refresh stub (Filen uses long-lived API keys).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

apiUrl → const String