getSms static method

Future<List<String>> getSms()

Implementation

static Future<List<String>> getSms() async {
  try {
    final List<String> smsList = await _channel.invokeMethod('getSms');
    return smsList;
  } catch (e) {
    print("Error getting SMS: $e");
    return [];
  }
}