getSms static method
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 [];
}
}