layoutSizeFromSize function

LayoutSize layoutSizeFromSize(
  1. Size size
)

Converts a Flutter Size to a LayoutSize.

Creates a layout size from the width and height of a Flutter Size object.

Implementation

LayoutSize layoutSizeFromSize(Size size) {
  return LayoutSize(size.width, size.height);
}