fromBool static method
- bool? valid
Implementation
static ConfirmationStatus fromBool(bool? valid) {
if (valid == null) return ConfirmationStatus.pending;
if (valid) return ConfirmationStatus.confirmed;
return ConfirmationStatus.failed;
}
static ConfirmationStatus fromBool(bool? valid) {
if (valid == null) return ConfirmationStatus.pending;
if (valid) return ConfirmationStatus.confirmed;
return ConfirmationStatus.failed;
}