FlutterAssetLoader class

Flutter asset loader using LargeFileHandler plugin

Features:

  • Loads assets using native platform code (iOS/Android)
  • Handles LARGE files efficiently (290MB+) without loading into memory
  • Copies files in chunks, avoiding memory issues
  • Works on all platforms (Android, iOS, Web)
Implemented types

Constructors

FlutterAssetLoader.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyAssetToFile(String assetPath, String targetPath) Future<void>
Copies asset file directly to target path using LargeFileHandler This is the CORRECT way to handle large files
copyAssetToFileWithProgress(String assetPath, String targetPath) Stream<int>
Copies asset with progress tracking
loadAsset(String path) Future<Uint8List>
Loads an asset as bytes from the given path
override
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