removeObject method

void removeObject(
  1. int location, [
  2. bool clearTap = true
])

Implementation

void removeObject(int location,[bool clearTap = true]){
  levelInfo[selectedLevel].objects.removeAt(location);
  currentSize = null;
  tapLocation = null;
  if(clearTap){
    objectTappedOn = [];
  }
  updateMinMap = true;
  update();
}