withCipherKey static method

Future<RestChannelOptions> withCipherKey(
  1. dynamic key
)

Constructor withCipherKey, that only takes a private key used to encrypt and decrypt payloads.

Implementation

static Future<RestChannelOptions> withCipherKey(dynamic key) async {
  final cipherParams = await Crypto.getDefaultParams(key: key);
  return RestChannelOptions(cipherParams: cipherParams);
}