Album class

Constructors

Album()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addHistoryFile(List<String> fileList) Future<void>
checkCameraPermission() Future<bool>
checkPhotosPermission() Future<bool>
getLatestMediaFile([int count = 50]) Future<List<AssetEntity>>
imagesPreview(List<String> picArr, dynamic index, dynamic loadHistoryCallBack()) → void
mediaCompress(List<AssetEntity> itemList, dynamic compressCallBack(AssetEntity)) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
openAlbumOfMultiple() Future<List<AssetEntity>>
选择多张图片,返回原图路径
openAlbumOfRadio({bool addCrop = false}) Future<String>
单选自带压缩效果,截剪不支持gif
takePhoto({bool addCrop = false}) Future
addCrop: true 拍照加裁剪, 直接返回裁剪后的路径 addCrop: false 单纯拍照,返回 AssetEntity
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance Album
read-only

Static Methods

checkPermission(List<Permission> permissions) Future<bool>

Constants

albumTypeMultiple → const int
0
albumTypeRadioAddCrop → const int
1
albumTypeSingle → const int
2
takePhotoAddCrop → const int
2
takePhotoSingle → const int
1