getspriteLocations method

List<Rect> getspriteLocations()

Implementation

List<Rect> getspriteLocations(){
  List<Rect> rect = [];
  for(int i = 0; i < sprites.length; i++){
    rect.add(
      sprites[i].section
    );
  }
  return rect;
}