figure property

String figure

Gets or sets the figure name, used to construct a Geometry. The value must be a string. The default value is "None".

The name can be any case but will always be canonicalized when set. For instance, setting "roundedrectangle" will set the value of figure to "RoundedRectangle". All of the predefined figures are shown in the Shapes sample.

At most one of the following three properties may be set to a non-"None" value at the same time on the same shape: #figure, #toArrow, #fromArrow.

You can define your own named figures by calling the static function Shape.defineFigureGenerator.

Implementation

_i2.String get figure => _i4.getProperty(
      this,
      'figure',
    );
void figure=(String value)

Implementation

set figure(_i2.String value) {
  _i4.setProperty(
    this,
    'figure',
    value,
  );
}