setCredentials method

Future<void> setCredentials(
  1. List<int> credentials
)

Sets the current credentials of the repository.

Implementation

Future<void> setCredentials(
  List<int> credentials,
) async {
  final request = RequestRepositorySetCredentials(
    repo: handle,
    credentials: credentials,
  );
  final response = await client.invoke(request);
  switch (response) {
    case ResponseNone(): return;
    default: throw UnexpectedResponse();
  }
}