Client constructor

Client({
  1. required String id,
  2. String? tag,
  3. Future<Signature> openSignatureHandler({
    1. required Client client,
    })?,
  4. Future<Signature> conversationSignatureHandler({
    1. String? action,
    2. required Client client,
    3. Conversation? conversation,
    4. List? targetIDs,
    })?,
})

To create an IM Client with an Client.id and an optional Client.tag.

You can implement below signature handlers as required to enable the feature about signature.

Implementation

Client({
  required this.id,
  this.tag,
  Future<Signature> Function({
    required Client client,
  })?
      openSignatureHandler,
  Future<Signature> Function({
    required Client client,
    Conversation? conversation,
    List? targetIDs,
    String? action,
  })?
      conversationSignatureHandler,
})  : _openSignatureHandler = openSignatureHandler,
      _conversationSignatureHandler = conversationSignatureHandler;