data property
SvgData?
data
The SvgData object that contains the SVG image to draw.
If this value is null, nothing will be drawn.
Implementation
SvgData? get data {
return _data;
}
Sets the SVG image data to be drawn.
Implementation
set data(SvgData? data) {
if (_data == data) {
return;
}
_data = data;
_isValid = _data?.hasContent ?? false;
requiresRedraw();
}