sizeToOffset static method

Offset sizeToOffset(
  1. Size size
)

Converts the size to an offset and returns it.

Implementation

static Offset sizeToOffset(Size size) {
  return Offset(size.width, size.height);
}