statusDescription property
String
statusDescription
Implementation
String get statusDescription {
if (error != 0) {
return 'Error';
}
switch (status) {
case 0:
return 'Stopped';
case 1:
return 'Check waiting';
case 2:
return 'Checking';
case 3:
return 'Download waiting';
case 4:
return 'Downloading';
case 5:
return 'Seed waiting';
case 6:
return 'Seeding';
}
return 'Unkown';
}