Layout constructor

Layout({
  1. double? x,
  2. double? y,
  3. double? width,
  4. double? height,
})

Implementation

factory Layout({
  $core.double? x,
  $core.double? y,
  $core.double? width,
  $core.double? height,
}) {
  final result = create();
  if (x != null) result.x = x;
  if (y != null) result.y = y;
  if (width != null) result.width = width;
  if (height != null) result.height = height;
  return result;
}