platform/example/common.dart

6 lines
199 B
Dart
Raw Normal View History

2017-03-28 23:29:22 +00:00
import 'dart:async';
import 'dart:io';
Future<HttpServer> startShared(InternetAddress address, int port) => HttpServer
.bind(address ?? InternetAddress.LOOPBACK_IP_V4, port ?? 0, shared: true);