setNonRotatedSizeWithoutEmittingEvent method

bool setNonRotatedSizeWithoutEmittingEvent(
  1. Size nonRotatedSize
)

Set the widget size but don't emit a event to the event system.

Implementation

bool setNonRotatedSizeWithoutEmittingEvent(
  Size nonRotatedSize,
) {
  if (nonRotatedSize != MapCamera.kImpossibleSize &&
      nonRotatedSize != camera.nonRotatedSize) {
    value = value.withMapCamera(camera.withNonRotatedSize(nonRotatedSize));
    return true;
  }

  return false;
}