getBlacklist method Null safety

Future<List<JMUserInfo>> getBlacklist()

Implementation

Future<List<JMUserInfo>> getBlacklist() async {
  List userJsons = await _channel.invokeMethod('getBlacklist');
  List<JMUserInfo> res =
      userJsons.map((json) => JMUserInfo.fromJson(json)).toList();
  return res;
}