mirrorExists method

Future<bool> mirrorExists(
  1. ShareToken token,
  2. String host
)
inherited

Implementation

Future<bool> mirrorExists(
  ShareToken token,
  String host,
) async {
  final request = RequestSessionMirrorExists(
    token: token,
    host: host,
  );
  final response = await client.invoke(request);
  switch (response) {
    case ResponseBool(value: final value): return value;
    default: throw UnexpectedResponse();
  }
}