Dart Assert provides a rich and intuitive set of strongly typed assertions to use for unit testing. Inspired by AssertJ.
Distributed under the Apache 2.0 License.
Create a Dart project and add a pubspec.yaml file to it
dependencies: dart_assert: any
import 'package:assert_dart/assert_dart.dart'; assertThisObject("Hello")..isNotNull() ..isEqualTo("Hello");