WampFileSource.bytes constructor
WampFileSource.bytes(})
Implementation
factory WampFileSource.bytes(
Uint8List bytes, {
required String name,
String? contentType,
String? sha256Digest,
Map<String, dynamic>? custom,
}) {
return WampFileSource(
name: name,
length: bytes.length,
openRead: () => Stream<Uint8List>.value(bytes),
contentType: contentType,
sha256Digest: sha256Digest,
custom: custom,
);
}