SlideAsset class

Mixed-in types
Annotations
  • @MappableClass.new(includeCustomMappers: [AssetFileBytesMapper()])

Constructors

SlideAsset({required AssetFileBytes bytes, required double width, required double height, required String path})
const

Properties

bytes Uint8List
no setter
copyWith SlideAssetCopyWith<SlideAsset, SlideAsset, SlideAsset>
no setterinherited
extension String
no setter
hashCode int
The hash code for this object.
no setterinherited
height double
final
name String
no setter
path String
final
relativePath String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
inherited
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

buildFile(String fileName) File
load(File file) Future<SlideAsset>
maybeLoad(File file) Future<SlideAsset?>

Constants

allowedExtensions → const List<String>
assetPrefix → const String
fromJson → const SlideAsset Function(String json)
fromMap → const SlideAsset Function(Map<String, dynamic> map)