queryThreads method

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

Implementation

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

  return [];
}