assertEven method
Asserts that this number is even.
Throws a test failure if this number is not even.
message
: Optional custom message for the failure reason.
Implementation
void assertEven({String? message}) {
expect(this % 2 == 0, isTrue,
reason: message ?? 'Expected $this to be even');
}