updateNetwork method

Future<void> updateNetwork(
  1. String network,
  2. NetworkUpdateOptions options, {
  3. Duration? timeout,
})

Updates mutable network settings.

Implementation

Future<void> updateNetwork(
  String network,
  NetworkUpdateOptions options, {
  Duration? timeout,
}) async {
  await _send(
    method: HttpMethod.post,
    path: '/networks/${_encodePath(network)}/update',
    body: options.toApiBody(),
    expectedStatusCodes: const <int>{200, 204},
    timeout: timeout,
  );
}