release method Null safety

void release()

Implementation

void release() {
  _cancel();
  player = null;
}