ParamsOfNaclBox constructor

ParamsOfNaclBox(
  1. {@required String decrypted,
  2. @required String nonce,
  3. @required String their_public,
  4. @required String secret}
)

Implementation

ParamsOfNaclBox({
  @required String decrypted,
  @required String nonce,
  @required String their_public,
  @required String secret,
}) {
  _decrypted =
      ArgumentError.checkNotNull(decrypted, 'ParamsOfNaclBox decrypted');
  _nonce = ArgumentError.checkNotNull(nonce, 'ParamsOfNaclBox nonce');
  _their_public = ArgumentError.checkNotNull(
      their_public, 'ParamsOfNaclBox their_public');
  _secret = ArgumentError.checkNotNull(secret, 'ParamsOfNaclBox secret');
}