dispose method

void dispose()

Implementation

void dispose() {
  if(data is NativeArray){
    data?.dispose();
  }
}