commit | 2071cfd84b3ede7277c57d122ef8c74cf0f3c6f0 | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch@google.com> | Mon Dec 28 11:15:47 2020 -0800 |
committer | GitHub <noreply@github.com> | Mon Dec 28 11:15:47 2020 -0800 |
tree | 81e0fb00cc1fdf3da5d3376cded24ec15b3b4e5c | |
parent | 5d52720b8cdb8ddcc4256950618650e7eabc4176 [diff] |
Add types to more parameters (#162) Find parameters that are implicitly `dynamic` and add a static type of either `Object?` or in some cases where a non-null value was clearly required `Object`. There may be missed cases where a non-null value is required. Add `as dynamic` casts back in places where we were already relying on dynamic calls as required to pass static analysis. This has the added benefit of making those dangerous calls more obvious.
Support for specifying test expectations, such as for unit tests.
The matcher library provides a third-generation assertion mechanism, drawing inspiration from Hamcrest.
For more information, see Unit Testing with Dart.