setSizeAndPosition method

void setSizeAndPosition({
  1. required int index,
  2. Offset? size,
  3. Offset? position,
})

Implementation

void setSizeAndPosition({required int index, Offset? size, Offset? position}) {
  sizes[index] = size;
  positions[index] = position;
  notifyListeners();
}