Assert class

A utility for making programming assertions.

@version 1.7

Constructors

Assert()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

equals(Object expectedValue, Object actualValue, [String? message]) → void
Throws an AssertionFailedException with the given message if the given objects are not equal, according to the equals method.
isTrue(bool assertion, [String? message]) → void
Throws an AssertionFailedException with the given message if the given assertion is not true.
shouldNeverReachHere([String? message]) → void
Always throws an AssertionFailedException with the given message.