Get Mystery Box with random crypto!

How to test functions that throw in Flutter When writing test | Flutter Bits - Flutter Tips & Tricks

How to test functions that throw in Flutter

When writing tests for functions that throw, we should not invoke them directly, but rather pass them as arguments using a tear-off.