get_threads method

Future<List<SmsThread>> get_threads()

Implementation

Future<List<SmsThread>> get_threads() async {
  if (flutter_is_support_flutter_sms) {
    try {
      List<SmsThread> sms_threads = await SmsQuery().getAllThreads;
      return sms_threads;
    } catch (e) {
      if (kDebugMode) {
        print(e);
      }
    }
  }
  return [];
}