destroy method

  1. @override
void destroy()
override

Overwrites the bytes with zeroes and discards the reference to them.

After calling this method, the bytes are no longer accessible and the getter bytes will throw StateError.

Implementation

@override
void destroy() {
  _bytes.destroy();
}