runModelOnBinary method Null safety

Future<List?> runModelOnBinary(
  1. {required Uint8List binary,
  2. int numResults = 5,
  3. double threshold = 0.1,
  4. bool asynch = true}
)

Implementation

static Future<List?> runModelOnBinary(
    {required Uint8List binary,
    int numResults = 5,
    double threshold = 0.1,
    bool asynch = true}) async {
  return await _channel.invokeMethod(
    'runModelOnBinary',
    {
      "binary": binary,
      "numResults": numResults,
      "threshold": threshold,
      "asynch": asynch,
    },
  );
}