S3StorageService class

Mixed-in types
  • LoggingMixin

Constructors

S3StorageService.new(IUploadsApi uploads, String baseUrl, {FutureOr<String> authTokenGenerator()?})
S3StorageService.ofCloudFront(IUploadsApi uploads, String baseUrl, {String cloudFrontUrl = defaultCloudFrontUrl, FutureOr<String> authTokenGenerator()?})

Properties

authTokenGenerator FutureOr<String> Function()?
final
baseUrl String
final
cloudFrontUrl String
final
hashCode int
The hash code for this object.
no setterinherited
log → Logger
no setterinherited
loggerName String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uploads IUploadsApi
final

Methods

getMediaPath(MediaContentType<Object> contentType, String mediaId, {dynamic mediaType}) FutureOr<String>
Gets a relative path to the picture
override
getMediaUri(MediaContentType<Object> contentType, String mediaId, {dynamic mediaType}) FutureOr<Uri>
Gets an absolute URI to the picture
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
uploadMedia(dynamic file, MediaContentType<Object> contentType, {dynamic mediaType, String? mediaId, ProgressTracker<Uri>? progress, bool isDebug = false}) → ProgressTracker<Uri>
override

Operators

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

Static Methods

mediaPathOf(MediaContentType<Object> contentType, String mediaId, {dynamic mediaType}) FutureOr<String>
mediaUriOf(MediaContentType<Object> contentType, String mediaId, {String cloudFrontUrl = defaultCloudFrontUrl, dynamic mediaType}) Future<Uri>