background property

dynamic get background

Gets or sets the background Brush of this GraphObject, filling the rectangle of this object's local coordinate space. If the object is rotated, the background will rotate with it.

The value may be either a Brush object or a string that is a CSS color. The default value is null -- no background is drawn. More information about the syntax of CSS color strings is available at: CSS colors (mozilla.org).

Implementation

_i2.dynamic get background => _i4.getProperty(
      this,
      'background',
    );
set background (dynamic value)

Implementation

set background(_i2.dynamic value) {
  _i4.setProperty(
    this,
    'background',
    value,
  );
}