WampFileSource constructor

WampFileSource({
  1. required String name,
  2. required int length,
  3. required Stream<Uint8List> openRead(),
  4. Stream<Uint8List> openReadChunks(
    1. int chunkSize
    )?,
  5. String? contentType,
  6. String? sha256Digest,
  7. String? nativePath,
  8. Map<String, dynamic>? custom,
})

Implementation

WampFileSource({
  required this.name,
  required this.length,
  required this.openRead,
  this.openReadChunks,
  this.contentType,
  this.sha256Digest,
  this.nativePath,
  Map<String, dynamic>? custom,
}) : custom = Map<String, dynamic>.unmodifiable(
       custom ?? const <String, dynamic>{},
     );