From a95a1e3a8d77fa17889deb4b7e80026ac44fa0b0 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Wed, 3 Aug 2022 16:33:22 +0200 Subject: [PATCH] style: Use .isEven instead of '% 2 == 0' --- test/double_ratchet_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/double_ratchet_test.dart b/test/double_ratchet_test.dart index 6b4039c..d870e16 100644 --- a/test/double_ratchet_test.dart +++ b/test/double_ratchet_test.dart @@ -93,7 +93,7 @@ void main() { for (var i = 0; i < 100; i++) { final messageText = 'Hello, dear $i'; - if (i % 2 == 0) { + if (i.isEven) { // Alice encrypts a message final aliceRatchetResult = await alicesRatchet.ratchetEncrypt(utf8.encode(messageText)); print('Alice sent the message');