assertTrue method
Asserts that the specified value is true.
message- the message to report if the assertion fails.lazyMessage- the function to return a message to report if the assertion fails.
Implementation
external Unit assertTrue(
Boolean actual, {
String? message,
String? Function() lazyMessage,
});