Google is committed to advancing racial equity for Black communities. See how.

PseudoVmoFile.readOnly constructor

PseudoVmoFile.readOnly(VmoFn _vmoFn)

Constructor for read-only Vmo

Throws Exception if _vmoFn is null.

Resulting PseudoVmoFile returns nothing when read as a regular file.

Implementation

PseudoVmoFile.readOnly(this._vmoFn) : super.readOnly(() => Uint8List(0)) {
  ArgumentError.checkNotNull(_vmoFn, 'Vmo Function');
}