hasReason property

bool get hasReason

Returns true if reason is not null, otherwise false.

Implementation

bool get hasReason => reason != null;