Code cleanup
This commit is contained in:
parent
81f278031e
commit
334cd71b37
|
|
@ -51,10 +51,8 @@ class _DownloaderState extends State<Downloader> {
|
||||||
var matches = macRecoveryPattern.allMatches(line).toList();
|
var matches = macRecoveryPattern.allMatches(line).toList();
|
||||||
if (matches.isNotEmpty) {
|
if (matches.isNotEmpty) {
|
||||||
var size = matches[0].group(1);
|
var size = matches[0].group(1);
|
||||||
print(size);
|
|
||||||
if (size != null) {
|
if (size != null) {
|
||||||
var value = double.parse(size);
|
var value = double.parse(size);
|
||||||
print(value);
|
|
||||||
controller.add(value);
|
controller.add(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -75,7 +73,6 @@ class _DownloaderState extends State<Downloader> {
|
||||||
}
|
}
|
||||||
|
|
||||||
process.exitCode.then((value) {
|
process.exitCode.then((value) {
|
||||||
print("Process exited with exit code $value");
|
|
||||||
controller.close();
|
controller.close();
|
||||||
setState(() {
|
setState(() {
|
||||||
_downloadFinished = true;
|
_downloadFinished = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue