FrameEntity constructor

FrameEntity({
  1. double? alpha,
  2. Layout? layout,
  3. Transform? transform,
  4. String? clipPath,
  5. Iterable<ShapeEntity>? shapes,
})

Implementation

factory FrameEntity({
  $core.double? alpha,
  Layout? layout,
  Transform? transform,
  $core.String? clipPath,
  $core.Iterable<ShapeEntity>? shapes,
}) {
  final _result = create();
  if (alpha != null) {
    _result.alpha = alpha;
  }
  if (layout != null) {
    _result.layout = layout;
  }
  if (transform != null) {
    _result.transform = transform;
  }
  if (clipPath != null) {
    _result.clipPath = clipPath;
  }
  if (shapes != null) {
    _result.shapes.addAll(shapes);
  }
  return _result;
}