Assert class
Assertion utility class
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
-
inRange(
num value, num min, num max, [String? message]) → void - Asserts that the value is within the specified range
-
isTrue(
bool condition, [String? message]) → void - Asserts that the condition is true
-
notEmpty(
String? value, [String? message]) → void - Asserts that the string is not empty
-
notEmptyList(
List? list, [String? message]) → void - Asserts that the list is not empty
-
notNull(
dynamic value, [String? message]) → void - Asserts that the value is not null