# getBlocklist method

Future <List <String>> getBlocklist()

## Implementation

    Future<List<String>> getBlocklist() async {
      final result = (await getAttributes().sendStanza(
        StanzaDetails(
          Stanza.iq(
            type: 'get',
            children: [
              XMLNode.xmlns(
                tag: 'blocklist',
                xmlns: blockingXmlns,
              ),
            ],
          ),
        ),
      ))!;

      final blocklist = result.firstTag('blocklist', xmlns: blockingXmlns)!;
      return blocklist
          .findTags('item')
          .map((item) => item.attributes['jid']! as String)
          .toList();
    }