style: Use .isEven instead of '% 2 == 0'
This commit is contained in:
parent
37155d2a87
commit
a95a1e3a8d
@ -93,7 +93,7 @@ void main() {
|
|||||||
for (var i = 0; i < 100; i++) {
|
for (var i = 0; i < 100; i++) {
|
||||||
final messageText = 'Hello, dear $i';
|
final messageText = 'Hello, dear $i';
|
||||||
|
|
||||||
if (i % 2 == 0) {
|
if (i.isEven) {
|
||||||
// Alice encrypts a message
|
// Alice encrypts a message
|
||||||
final aliceRatchetResult = await alicesRatchet.ratchetEncrypt(utf8.encode(messageText));
|
final aliceRatchetResult = await alicesRatchet.ratchetEncrypt(utf8.encode(messageText));
|
||||||
print('Alice sent the message');
|
print('Alice sent the message');
|
||||||
|
Loading…
Reference in New Issue
Block a user