create static method

Future<IsolateInterpreter> create({
  1. required int address,
  2. String debugName = 'TfLiteInterpreterIsolate',
})

Implementation

static Future<IsolateInterpreter> create({
  required int address,
  String debugName = 'TfLiteInterpreterIsolate',
}) async {
  final interpreter = IsolateInterpreter._(
    address: address,
    debugName: debugName,
  );

  await interpreter._init(); // Initialize the instance.

  return interpreter;
}