updateHandle method

Future<Tuple2> updateHandle(
  1. String handle
)

Implementation

Future<Tuple2> updateHandle(String handle) async {
  Map<String, dynamic> params = {
    "handle": handle,
  };
  http.Response res = await api.post("com.atproto.identity.updateHandle",
      headers: {
        "Content-Type": "application/json",
        "Authorization": "Bearer ${api.session.accessJwt}"
      },
      body: json.encode(params));
  return Tuple2<int, Map<String, dynamic>>(
      res.statusCode, json.decode(res.body));
}