PolygonNode constructor

PolygonNode({
  1. String? type,
  2. num? pointCount,
  3. PolygonNode clone()?,
  4. Constraints? constraints,
  5. Object? cornerRadius,
  6. num? cornerSmoothing,
  7. ReadonlyArray<Annotation>? annotations,
  8. Vector? targetAspectRatio,
  9. void lockAspectRatio()?,
  10. void unlockAspectRatio()?,
})

Implementation

factory PolygonNode({
  _i2.String? type,
  _i2.num? pointCount,
  _i3.PolygonNode Function()? clone,
  _i3.Constraints? constraints,
  _i2.Object? cornerRadius,
  _i2.num? cornerSmoothing,
  _i4.ReadonlyArray<_i3.Annotation>? annotations,
  _i3.Vector? targetAspectRatio,
  void Function()? lockAspectRatio,
  void Function()? unlockAspectRatio,
}) =>
    PolygonNode._(
      type: type,
      pointCount: pointCount,
      clone: clone == null ? null : _i5.allowInterop(clone),
      constraints: constraints ?? _i7.undefined,
      cornerRadius: cornerRadius ?? _i7.undefined,
      cornerSmoothing: cornerSmoothing,
      annotations: annotations ?? _i7.undefined,
      targetAspectRatio: targetAspectRatio ?? _i7.undefined,
      lockAspectRatio:
          lockAspectRatio == null ? null : _i5.allowInterop(lockAspectRatio),
      unlockAspectRatio: unlockAspectRatio == null
          ? null
          : _i5.allowInterop(unlockAspectRatio),
    );