diff --git a/cyberwow/lib/controller/process/run.dart b/cyberwow/lib/controller/process/run.dart index ce28512..68a9a53 100644 --- a/cyberwow/lib/controller/process/run.dart +++ b/cyberwow/lib/controller/process/run.dart @@ -35,7 +35,7 @@ Stream runBinary (String name, {Stream input}) async* { final appDocDir = await getApplicationDocumentsDirectory(); final appDocPath = appDocDir.path; - final binDir = new Directory(appDocDir.path + "/" + config.c.appPath); + final binDir = Directory(appDocDir.path + "/" + config.c.appPath); await binDir.create(); @@ -73,7 +73,7 @@ Stream runBinary (String name, {Stream input}) async* { } await for (final line in outputProcess.stdout.transform(utf8.decoder)) { log.finest('process output: ' + line); - yield line.replaceAll(new RegExp(r'\033\[[0-9;]*m'), ''); + yield line.replaceAll(RegExp(r'\033\[[0-9;]*m'), ''); } if (config.isEmu) return; diff --git a/cyberwow/lib/helper.dart b/cyberwow/lib/helper.dart index d6082e9..b1a624f 100644 --- a/cyberwow/lib/helper.dart +++ b/cyberwow/lib/helper.dart @@ -22,7 +22,7 @@ along with CyberWOW. If not, see . import 'dart:convert'; String pretty(dynamic x) { - final JsonEncoder encoder = new JsonEncoder.withIndent(' '); + final JsonEncoder encoder = JsonEncoder.withIndent(' '); return encoder.convert(x); } diff --git a/cyberwow/lib/logging.dart b/cyberwow/lib/logging.dart index 12a481f..a4baf9e 100644 --- a/cyberwow/lib/logging.dart +++ b/cyberwow/lib/logging.dart @@ -1,3 +1,3 @@ import 'package:logging/logging.dart'; -final Logger log = new Logger('Default'); +final Logger log = Logger('Default'); diff --git a/cyberwow/lib/state.dart b/cyberwow/lib/state.dart index 2760d72..1cb1853 100644 --- a/cyberwow/lib/state.dart +++ b/cyberwow/lib/state.dart @@ -115,7 +115,7 @@ class LoadingState extends HookedState { Future showBanner() async { var chars = []; banner.runes.forEach((int rune) { - final c = new String.fromCharCode(rune); + final c = String.fromCharCode(rune); chars.add(c); });