toValue method
Implementation
String toValue() {
switch (this) {
case Status.completed:
return 'completed';
case Status.pending:
return 'pending';
case Status.error:
return 'error';
}
}
String toValue() {
switch (this) {
case Status.completed:
return 'completed';
case Status.pending:
return 'pending';
case Status.error:
return 'error';
}
}