AssetImplementation constructor
const
AssetImplementation({})
A concrete, immutable implementation of the Asset interface.
This class represents a single asset in the system, containing the file path, file name, package name, and binary content.
Typically used in scenarios where reflective or dynamic loading of files and packages is required.
Example
final asset = AssetImplementation(
filePath: 'lib/resources/logo.png',
fileName: 'logo.png',
packageName: 'my_package',
contentBytes: await File('lib/resources/logo.png').readAsBytes(),
);
print(asset.fileName); // logo.png
Implementation
const AssetImplementation({
required super.filePath,
required super.fileName,
required super.packageName,
required super.contentBytes,
});