close method

Future close()

Implementation

Future close() {
  return Future.wait(_routes.map((r) => r.controller.close())).then((_) {
    _subscription.cancel();
  });
}