fromBytes static method

Future<Interpreter> fromBytes(
  1. Uint8List bytes, {
  2. InterpreterOptions? options,
})

Creates an interpreter from raw model bytes.

This is the async, cross-platform spelling of fromBuffer. On native platforms it completes immediately after constructing the interpreter.

Implementation

static Future<Interpreter> fromBytes(
  Uint8List bytes, {
  InterpreterOptions? options,
}) async {
  return Interpreter.fromBuffer(bytes, options: options);
}