createTopic static method

Future<String?> createTopic({
  1. required String topicName,
  2. List<TopicMetaData> metaData = const [],
})

Used as a createTopic class for Mirrorfly used to create a Topic for chat

  • @required topicName set Topic name
  • @optional metaData set meta data of the Topic

Implementation

static Future<String?> createTopic({required String topicName, List<TopicMetaData> metaData = const []}) async {
  return FlyChatFlutterPlatform.instance.createTopic(topicName: topicName, metaData: metaData);
}