MediaSourceData<F extends Object> class

Could be an uploaded image (uri) or a file that the user chose that's in the process of being uploaded

Implemented types
Mixed-in types
  • DiffDelegateMixin

Constructors

MediaSourceData.ofMediaContent(FlutterMediaContentType<F> contentType, F? mediaContent, {required String? mediaId})
MediaSourceData.ofPFile(FlutterMediaContentType<F> contentType, PFile? file, String? mediaId, {dynamic mediaCategory})
MediaSourceData.ofPlatformFile(FlutterMediaContentType<F> contentType, dynamic file, String? mediaId, {dynamic mediaCategory})

Properties

contentType → FlutterMediaContentType<F>
final
diffHashCode → int
no setterinherited
diffKey → String?
no setteroverride
diffSource → dynamic
no setteroverride
file → PFile?
nullable: A file on the device
final
hashCode → int
The hash code for this object.
no setteroverride
isCompleted → bool
no setter
isUploading → bool
no setter
mediaCategory → dynamic
The type of image
final
mediaContent → F?
final
mediaId → String?
ImageId is used for equality checks when uploading new files (because the file itself isn't very good to use in equality checks)
final
original → MediaSourceData<F>?
The original content
final
progress → ProgressTracker<Uri>?
If the file is uploading, this tracker will report the status
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
ready → Future?
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
uri → String?
no setter

Methods

copy({required F? mediaContent, required String? mediaId, required FlutterMediaContentType<F>? contentType, required dynamic mediaCategory, required ProgressTracker<Uri>? progress, required PFile? file, required MediaSourceData<F>? original}) → MediaSourceData<F>
diffEquals(dynamic other) → bool
inherited
diffIdentical(dynamic other) → bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
uploaded(Uri uri) → MediaSourceData<F>

Operators

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