ARCacheOptions class
Configuration options for AR model caching
Constructors
-
ARCacheOptions({int maxFileSize = 100 * 1024 * 1024, Duration connectTimeout = const Duration(minutes: 3), Duration receiveTimeout = const Duration(minutes: 3), Duration sendTimeout = const Duration(minutes: 3), int maxRetryAttempts = 3, int chunkSize = 5 * 1024 * 1024, bool showLoadingDialog = true, bool showProgress = true, Map<
String, String> headers = const {'Accept-Encoding' : 'gzip, deflate'}}) -
const
Properties
- chunkSize → int
-
Chunk size for download progress (in bytes)
Default: 5MB
final
- connectTimeout → Duration
-
Connection timeout for downloads
Default: 3 minutes
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Custom headers to include in download requests
final
- maxFileSize → int
-
Maximum file size allowed for caching (in bytes)
Default: 100MB
final
- maxRetryAttempts → int
-
Maximum number of retry attempts for failed downloads
Default: 3
final
- receiveTimeout → Duration
-
Receive timeout for downloads
Default: 3 minutes
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendTimeout → Duration
-
Send timeout for downloads
Default: 3 minutes
final
- showLoadingDialog → bool
-
Whether to show loading dialog during download
Default: true
final
- showProgress → bool
-
Whether to show progress indicator
Default: true
final
Methods
-
copyWith(
{int? maxFileSize, Duration? connectTimeout, Duration? receiveTimeout, Duration? sendTimeout, int? maxRetryAttempts, int? chunkSize, bool? showLoadingDialog, bool? showProgress, Map< String, String> ? headers}) → ARCacheOptions - Create a copy of this options with some fields replaced
-
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