dispose method
void
dispose()
Implementation
void dispose(){
if(data is List){
for(final temp in data){
if(temp is NativeArray){
temp.dispose();
}
else if(temp is ImageElement){
temp.dispose();
}
}
}
else if(data is ImageElement){
(data as ImageElement).dispose();
}
else if(data is NativeArray){
(data as NativeArray).dispose();
}
}