getIntrinsicSize method
Implementation
ui.Size getIntrinsicSize() {
if (width != null && height != null) {
return ui.Size(width!, height!);
} else if (viewBox != null) {
if (width != null) {
return ui.Size(width!, width! / (viewBox!.width / viewBox!.height));
} else if (height != null) {
return ui.Size(viewBox!.width / viewBox!.height * height!, height!);
}
}
return ui.Size(INTRINSIC_DEFAULT_WIDTH, INTRINSIC_DEFAULT_HEIGHT);
}