load method

Future<ModelDocument> load(
  1. Uint8List bytes
)

Reads bytes, choosing the dialect the same way isBinaryStl does.

No resolveUri parameter: a .stl file is always one self-contained blob, unlike glTF's buffers or OBJ's material library.

Implementation

Future<ModelDocument> load(Uint8List bytes) async =>
    isBinaryStl(bytes) ? _decodeBinary(bytes) : _decodeAscii(bytes);