You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently assert is used to check that various things are valid. This is an incorrect use of assertions and makes this library unusable for any production code. Assertions should be used to check for programmer errors during development not normal runtime data errors.
Currently
assert
is used to check that various things are valid. This is an incorrect use of assertions and makes this library unusable for any production code. Assertions should be used to check for programmer errors during development not normal runtime data errors.In Dart, the proper way to handle normal runtime errors is by using Exceptions see https://dart.dev/language/error-handlingExceptions in Dart are not ideal. It's better to use nullables or error unions. See discussion here: dart-lang/language#3094
The text was updated successfully, but these errors were encountered: