add missing type parameter on methods (#22096)
This commit is contained in:
committed by
GitHub
parent
48fb726b01
commit
f62afdcf57
@@ -141,7 +141,7 @@ class CalculationManager {
|
||||
final CalculationMessage message = CalculationMessage(data, _receivePort.sendPort);
|
||||
// Spawn an isolate to JSON-parse the file contents. The JSON parsing
|
||||
// is synchronous, so if done in the main isolate, the UI would block.
|
||||
Isolate.spawn(_calculate, message).then<Null>((Isolate isolate) {
|
||||
Isolate.spawn<CalculationMessage>(_calculate, message).then<Null>((Isolate isolate) {
|
||||
if (!isRunning) {
|
||||
isolate.kill(priority: Isolate.immediate);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user