platform/example/common.dart
thosakwe cc793f6736 69
2017-03-28 19:29:22 -04:00

5 lines
199 B
Dart

import 'dart:async';
import 'dart:io';
Future<HttpServer> startShared(InternetAddress address, int port) => HttpServer
.bind(address ?? InternetAddress.LOOPBACK_IP_V4, port ?? 0, shared: true);