Use Dart 2 camel case constants (#15360)

This commit is contained in:
Jason Simmons
2018-03-12 11:06:32 -07:00
committed by GitHub
parent 33f9afd99c
commit 466d15433f
141 changed files with 708 additions and 708 deletions

View File

@@ -120,7 +120,7 @@ class CalculationManager {
if (isRunning) {
_state = CalculationState.idle;
if (_isolate != null) {
_isolate.kill(priority: Isolate.IMMEDIATE);
_isolate.kill(priority: Isolate.immediate);
_isolate = null;
_completed = 0.0;
_total = 1.0;
@@ -144,7 +144,7 @@ class CalculationManager {
// is synchronous, so if done in the main isolate, the UI would block.
Isolate.spawn(_calculate, message).then<Null>((Isolate isolate) {
if (!isRunning) {
isolate.kill(priority: Isolate.IMMEDIATE);
isolate.kill(priority: Isolate.immediate);
} else {
_state = CalculationState.calculating;
_isolate = isolate;