predict static method

Future? predict(
  1. List<Uint8List> inputData
)

Implementation

static Future<dynamic>? predict(List<Uint8List> inputData) {
  if (inputData.length == 1) {
    return RunevmFl.runRune(inputData[0]);
  } else {
    List<int> inputs = [];
    List<int> lengths = [];
    for (Uint8List input in inputData) {
      inputs.addAll(input);
      lengths.add(input.length);
      return RunevmFl.runRune(new Uint8List.fromList(inputs), lengths);
    }
  }
  return null;
}