removeSmsById method

Future<bool?> removeSmsById(
  1. int id,
  2. int threadId
)

Implementation

Future<bool?> removeSmsById(int id, int threadId) async {
  Map arguments = {};
  arguments['id'] = id;
  arguments['thread_id'] = threadId;
  bool? finalResult;
  try {
    final bool? result = await platform.invokeMethod('removeSms', arguments);
    finalResult = result;
  } catch (e) {
    print(e);
  }

  return finalResult;
}