From d145f55e49e868ceb51f915c9d427c148054746a Mon Sep 17 00:00:00 2001 From: Mohit Tejani Date: Wed, 27 Mar 2024 20:53:18 +0530 Subject: [PATCH] fix == oprator implementation for CipherKey --- pubnub/lib/src/core/crypto/cipher_key.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pubnub/lib/src/core/crypto/cipher_key.dart b/pubnub/lib/src/core/crypto/cipher_key.dart index 7588c95b..f5b44b15 100644 --- a/pubnub/lib/src/core/crypto/cipher_key.dart +++ b/pubnub/lib/src/core/crypto/cipher_key.dart @@ -23,12 +23,12 @@ class CipherKey { } @override - bool operator ==(dynamic other) { + bool operator ==(Object other) { if (other == null) { return false; } if (runtimeType == other.runtimeType) { - return utf8.decode(data) == utf8.decode(other!.data); + return utf8.decode(data) == utf8.decode((other as CipherKey).data); } return false; }