pinMessage method
Implementation
Future<void> pinMessage(
dynamic message, bool isPinned, dynamic? config) async {
await promiseToFuture(ZIM.getInstance()!.pinMessage(_mapToJSObject(message),
isPinned, config == null ? null : _mapToJSObject(config)))
.catchError(_handleError);
return Future.value();
}