process method

Future<List<RecognitionCandidate>> process({
  1. String preContext = '',
})

Implementation

Future<List<RecognitionCandidate>> process({String preContext = ''}) async {
  try {
    List result = await channel
        .invokeMethod('process', <String, dynamic>{'preContext': preContext});
    return result.map((item) => RecognitionCandidate.from(item)).toList();
  } on PlatformException catch (e) {
    print(e.message);
  }

  return [];
}