detect method

Future<DetectResult> detect(
  1. {dynamic language = 'zh'}
)

Implementation

Future<DetectResult> detect({language = 'zh'}) async {
  var arguments = Map();
  arguments['language'] = language;
  final Map<dynamic, dynamic> map =
  await _channel.invokeMethod('detect', arguments);
  return map != null ? new DetectResult.fromMap(map) : null;
}