createCustomMessage method Null safety

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createCustomMessage(
  1. {required String data,
  2. String desc = "",
  3. String extension = ""}
)

Create custom messages

parameter:

  • data is a custom message
  • description Customize the message description information, which is displayed in text when doing offline Push.
  • extension Extension field information when pushing offline.

Implementation

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createCustomMessage({
  required String data,
  String desc = "",
  String extension = "",
}) async {
  return ImFlutterPlatform.instance
      .createCustomMessage(data: data, extension: extension, desc: desc);
}