dispose method

void dispose()

Implementation

void dispose(){
  array.dispose();
  data?.dispose();
  data = null;
}