getResponse method

  1. @override
Future<String> getResponse({
  1. required String message,
})
override

Implementation

@override
Future<String> getResponse({required String message}) async {
  var response = '';
  try {
    final String result =
        await methodChannel.invokeMethod('getResponse', {'msg': message});
    response = result;
  } catch (e) {
    response = 'unknown';
  }
  return response;
}