computeIntrinsicSize method

  1. @override
Size computeIntrinsicSize(
  1. Size min,
  2. Size max
)

Implementation

@override
Size computeIntrinsicSize(Size min, Size max) {
  final bounds = mountedArtboard?.bounds;
  if (bounds == null) {
    return min;
  }
  return Size(bounds.width * scaleX, bounds.height * scaleY);
}