sourceRect property

Rect get sourceRect

Gets or sets the rectangular area of the source image that this picture should display. This is only common with sprite maps and image tables.

The value must be of type Rect. The default value is Rect(NaN, NaN, NaN, NaN), which means the whole source image should be used.

Implementation

_i3.Rect get sourceRect => _i4.getProperty(
      this,
      'sourceRect',
    );
set sourceRect (Rect value)

Implementation

set sourceRect(_i3.Rect value) {
  _i4.setProperty(
    this,
    'sourceRect',
    value,
  );
}