setMessage method

  1. @override
Future<void> setMessage(
  1. Message message
)
override

Set a message.

Messages are stored on CARP using the Message.id as the document name.

Implementation

@override
Future<void> setMessage(Message message) async {
  _assertCarpService();
  await CarpService()
      .collection(MESSAGES_PATH)
      .document(message.id)
      .setData(message.toJson());
}