File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import 'dart:convert';
7
7
import 'dart:ffi' ;
8
8
import 'dart:isolate' ;
9
9
import 'dart:io' ;
10
- import 'dart:typed_data' ;
11
10
12
11
import 'package:ffi/ffi.dart' ;
13
12
@@ -72,18 +71,18 @@ ReceivePort httpServe(void Function(String) onRequest) {
72
71
rp.sendPort.send (s);
73
72
});
74
73
rp.listen (
75
- (s) {
76
- print ('httpServe counter: $counter ' );
77
- onRequest (s);
78
- },
79
- onError: (e, st) {
80
- print ('httpServe receiver get error $e $st ' );
81
- },
82
- onDone: () {
83
- nativeHttpStopServing ();
84
- callback.close ();
85
- },
86
- );
74
+ (s) {
75
+ print ('httpServe counter: $counter ' );
76
+ onRequest (s);
77
+ },
78
+ onError: (e, st) {
79
+ print ('httpServe receiver get error $e $st ' );
80
+ },
81
+ onDone: () {
82
+ nativeHttpStopServing ();
83
+ callback.close ();
84
+ },
85
+ );
87
86
88
87
// Invoke the native function to start the HTTP server. Our example
89
88
// HTTP library will start a server on a background thread, and pass
You can’t perform that action at this time.
0 commit comments