LanisConfig class
Immutable configuration produced by LanisClient.configure.
Constructors
- LanisConfig({String? databasePath, SecretStore? secretStore, String? documentCacheDirectory, HttpClientAdapter? httpAdapter, String userAgent = 'liblanis/0.1.0', bool storageEnabled = true, Duration? storageMaxAge, int? storageMaxBytes, UnexpectedErrorHandler? onUnexpectedError})
-
const
Properties
- databasePath → String?
-
Absolute path to the sqlite DB file, or null for in-memory.
final
- documentCacheDirectory → String?
-
Root directory for document downloads. Required to use StorageManager downloads.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpAdapter → HttpClientAdapter?
-
Optional Dio HTTP adapter (e.g. Cronet from a Flutter host).
final
- onUnexpectedError → UnexpectedErrorHandler?
-
Optional host callback for unexpected AppletParser.fetchData failures.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secretStore → SecretStore?
-
Required when databasePath is non-null.
final
- storageEnabled → bool
-
When true, StorageManager caching/downloads are enabled (still needs a directory).
final
- storageMaxAge → Duration?
-
Optional max age for cached files; null means no TTL eviction.
final
- storageMaxBytes → int?
-
Optional max total cache size in bytes; null means unlimited.
final
- userAgent → String
-
User-Agent product name fragment, e.g.
Lanis-Mobile/v3.7.2+83.final
Methods
-
copyWith(
{String? databasePath, SecretStore? secretStore, String? documentCacheDirectory, HttpClientAdapter? httpAdapter, String? userAgent, bool? storageEnabled, Duration? storageMaxAge, int? storageMaxBytes, UnexpectedErrorHandler? onUnexpectedError}) → LanisConfig -
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