SingleImageSelector class

单文件选择上传

Constructors

SingleImageSelector(BuildContext context, {bool showUploadProgress = true, bool showErrorToast = true, CropConfig? cropConfig, ValueChanged<String>? onSuccess, ValueChanged<String>? onError, VoidCallback? onCancel})

Properties

context BuildContext
final
cropConfig CropConfig?
final
hashCode int
The hash code for this object.
no setterinherited
onCancel VoidCallback?
final
onError ValueChanged<String>?
final
onSuccess ValueChanged<String>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showErrorToast bool
final
showUploadProgress bool
final

Methods

camera() → dynamic
拍照
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pick() → dynamic
相册选择
pickVideo() → dynamic
选择视频
showPickerDialog() → dynamic
选择文件弹窗
toString() String
A string representation of this object.
inherited

Operators

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

Constants

TYPE_ALBUM → const int
TYPE_CAMERA → const int
TYPE_VIDEO → const int