INNER CODE UNIT · Dart
result
rhymelph/r_upgrade · lib/r_upgrade.dart:315
result = (_speed / (1024 * 1024)).toStringAsFixed(2);
} else if (_speed > 1024) {
unit = 'mb/s';
result = (_speed / 1024).toStringAsFixed(2);
}
return '$result$unit';
}
}
///
/// A model class is download status
///
/// * [STATUS_PAUSED] download paused
/// * [STATUS_PENDING] download pending
/// * [STATUS_RUNNING] download running
/// * [STATUS_SUCCESSFUL] download successful
/// * [STATUS_FAILED] download failed
/// * [STATUS_CANCEL] download cancel