flutter_js icon indicating copy to clipboard operation
flutter_js copied to clipboard

SetTimeout called with Null

Open DennisAlund opened this issue 2 years ago • 1 comments

The SetTimeout method seems to be able to receive null parameter for non-nullable int property

I/flutter (10469): Erro no setTimeout: type 'Null' is not a subtype of type 'int'

https://github.com/abner/flutter_js/blob/3bdd3d173cc62d5fefce3c45306b72234a6b0d4c/lib/javascript_runtime.dart#L136-L138

How to reproduce

Run unit-tests on this repo that is using the flutter_js lib. https://github.com/FAME-Capital/ethers_flutter/blob/63c77a6a65a7411bfa96ccf3beb0fda61153b61c/test/wallet_test.dart

DennisAlund avatar Sep 23 '21 03:09 DennisAlund

I think this can be closed since it was fixed by your PR?

shilangyu avatar Nov 05 '22 17:11 shilangyu