getAllThreads method

  1. @override
Future<List<SmsThreadInfoData>> getAllThreads()
override

Implementation

@override
Future<List<SmsThreadInfoData>> getAllThreads() async {
  if (flutter_is_support_flutter_sms) {
    try {
      return (await SmsQuery().getAllThreads).toSmsThreadInfoDatas();
    } catch (e) {
      if (kDebugMode) {
        print(e);
      }
    }
  }
  return [];
}