InputStream constructor Null safety
Create a InputStream for reading from a List
Implementation
InputStream(dynamic data,
{this.byteOrder = LITTLE_ENDIAN, this.start = 0, int? length})
: buffer = data is TypedData
? Uint8List.view(
data.buffer, data.offsetInBytes, data.lengthInBytes)
: data is List<int>
? data
: List<int>.from(data as Iterable<dynamic>),
offset = start {
_length = length ?? buffer.length;
}