getChannelMessages static method

Future<String?> getChannelMessages(
  1. String channelId
)

Implementation

static Future<String?> getChannelMessages(
    String channelId
    ) async {
  String? result = "";
  try {
    result = await _channel.invokeMethod(
        'getChannelMessages',
        <String, dynamic>{'channel_id': channelId});

    return result;
  } on PlatformException catch(e) {
    print('Error = $e');
    return "";
  }
}