mirror of
https://github.com/flutter/samples.git
synced 2026-03-29 07:41:41 +00:00
Landing beta changes in master for the new stable release (#747)
This commit is contained in:
@@ -87,17 +87,15 @@ class DataTransferPage extends StatelessWidget {
|
||||
}
|
||||
|
||||
class DataTransferIsolateController extends ChangeNotifier {
|
||||
Isolate _isolate;
|
||||
ReceivePort _incomingReceivePort;
|
||||
SendPort _outgoingSendPort;
|
||||
Isolate? _isolate;
|
||||
late ReceivePort _incomingReceivePort;
|
||||
late SendPort _outgoingSendPort;
|
||||
|
||||
final currentProgress = <String>[];
|
||||
int runningTest = 0;
|
||||
Stopwatch _timer = Stopwatch();
|
||||
double progressPercent = 0;
|
||||
|
||||
Isolate get newIsolate => _isolate;
|
||||
|
||||
bool get running => runningTest != 0;
|
||||
|
||||
DataTransferIsolateController() {
|
||||
@@ -262,7 +260,7 @@ Iterable<int> createNums() sync* {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> generateAndSum(
|
||||
Future<int> generateAndSum(
|
||||
SendPort callerSP,
|
||||
Iterable<int> iter,
|
||||
int length,
|
||||
|
||||
Reference in New Issue
Block a user