WebSocketFileDataSource class

Keeps the existing room storage transport available to Powerboards. permissionsForPath must use the participant's effective storage grant.

Implemented types

Constructors

WebSocketFileDataSource(RoomClient room, {required Future<FilePermissions> permissionsForPath(String path), required Future<void> createDirectory(String path)})

Properties

changes → Stream<void>
no setteroverride
createDirectory → Future<void> Function(String path)
final
hashCode → int
The hash code for this object.
no setterinherited
permissionsForPath → Future<FilePermissions> Function(String path)
final
room → RoomClient
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsAbortTrigger → bool
no setteroverride

Methods

delete(String path, {bool recursive = false}) → Future<void>
override
download(String path, {Future<void>? abortTrigger}) → Stream<List<int>>
override
listPage(String path, {String? continuationToken}) → Future<FilesPage>
override
mkdir(String path) → Future<void>
override
move(String source, String destination, {bool overwrite = false}) → Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
permissions(String path) → Future<FilePermissions>
override
toString() → String
A string representation of this object.
inherited
upload(String path, Stream<List<int>> data, {int? size, String? contentType, bool overwrite = false, Future<void>? abortTrigger}) → Future<void>
override

Operators

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