SecretBox.decode constructor

SecretBox.decode(
  1. String data, [
  2. Encoder defaultDecoder = decoder
])

Implementation

factory SecretBox.decode(String data, [Encoder defaultDecoder = decoder]) {
  final decoded = defaultDecoder.decode(data);
  return SecretBox(decoded);
}