DataProvider class abstract

An abstraction of a byte store like a File or Uint8List.

Implementers

Constructors

DataProvider(File file)
Create a new DataProvider based on a file.
factory
DataProvider.create()
Create a new DataProvider. Used for sub classes.
DataProvider.memory(Uint8List data)
Create a new DataProvider based on data that is in memory.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
length Future<int>
Get the length of this data.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readByte(int position) Future<int>
Read the first byte at this position.
readBytes(int start, int end) Future<Uint8List>
Read the bytes from start to end.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int position) Future<int>
Read the first byte at this position.