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;
}