loadModel method Null safety

Future<String?> loadModel(
  1. {required String model,
  2. String labels = "",
  3. int numThreads = 1,
  4. bool isAsset = true,
  5. bool useGpuDelegate = false}
)

Implementation

static Future<String?> loadModel(
    {required String model,
    String labels = "",
    int numThreads = 1,
    bool isAsset = true,
    bool useGpuDelegate = false}) async {
  return await _channel.invokeMethod(
    'loadModel',
    {
      "model": model,
      "labels": labels,
      "numThreads": numThreads,
      "isAsset": isAsset,
      'useGpuDelegate': useGpuDelegate
    },
  );
}