secretKeyLength property

  1. @override
int get secretKeyLength
override

Number of bytes in the SecretKey.

Method newSecretKey uses this property to generate correct-length secret keys.

Methods encrypt and decrypt will throw ArgumentError if they receive incorrect-length secret keys.

Implementation

@override
int get secretKeyLength => 32;