release method

  1. @override
void release()
inherited

The release method must be overriden in derived classes to clean up any resources they use. Implementations should not throw and must call super.release() in a finally block. If a derived class defines Releasable fields, these fields should be released of in this method. Note for implementers: it should be safe to call this method several times.

Implementation

@override
void release() {
  stop();
  super.release();
}