isFailed property Null safety

bool isFailed

Convenient discriminator.

Implementation

bool get isFailed => _code == 1;