updateGroup method

  1. @override
Future<bool> updateGroup(
  1. String topic,
  2. Map<String, String> updates
)
override

Implementation

@override
Future<bool> updateGroup(String topic, Map<String, String> updates) async {
  try {
    final params = <String, dynamic>{
      'topic': topic,
      'updates': updates,
    }.jsify() as JSObject;

    await _promiseToFuture(
      _clientManager.updateGroup(params),
    );

    return true;
  } catch (e) {
    throw Exception('Failed to update group: $e');
  }
}