FlutterMediaContentType<F extends Object> class abstract

Represents either image or video content, allows for different upload/preview

Implementers

Constructors

FlutterMediaContentType()
const

Properties

acceptedFileTypes List<String>
no setterinherited
barrierColor Color
no setter
fieldPath → JsonPath
no setterinherited
fileType String
Probably same as name, but not always.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
maxSelections int
no setterinherited
name String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
no setter

Methods

buildPreview(BuildContext context, MediaSourceData<Object> source, {Widget? child, required bool isUploading, double? borderRadius}) Widget
buildThumbnail(BuildContext context, MediaSourceData<Object> source, {Widget? child, required bool isUploading, double? borderRadius}) Widget
mediaUri(F fact) Uri?
inherited
newContent() → F
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
uriToMedia(Uri uri) → F
inherited

Operators

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