I have created simple program in mac os x. Just set variable without any assignment and then check assert ( exist != null) but this statement fails, no any assertion.
Dart version:
Dart VM version: 2.0.0 (Fri Aug 3 10:53:23 2018 +0200) on “macos_x64”
Thanks
Have you tried enabling the option
--enable-asserts
, i.e.dart --enable-asserts <dart-script-file.dart>
?