addTwoNum method

Future<int> addTwoNum(
  1. int num1,
  2. int num2
)

Implementation

static Future<int> addTwoNum(int num1, int num2) async {
//    int res = await _channel.invokeMethod('addTwoNum');
//    return res;
  return _channel.invokeMethod('addTwoNum', <String, dynamic>{
    'val1': num1,
    'val2': num2,
  }).then((value) => value+100);
}