discontinuedPackage amity_sdk_flutter has been discontinued and replaced by amity_sdk.

createTextPost static method

Future<String?> createTextPost(
  1. String id,
  2. String postText, {
  3. required PostType postType,
})

Implementation

static Future<String?> createTextPost(String id, String postText, {required PostType postType}) async {
  final String? result = await _channel.invokeMethod("createTextPost", <String, String>{
    'postText': postText,
    'id': id,
    'postType': postType.toString()
  });

  return result;
}