measure method

  1. @override
ViewMeasuredSizes measure(
  1. int maxWidth,
  2. int maxHeight
)

Measure and return the size of this component.

This measurement is without the ComponentBuffer, which is added by the layout manager.

Implementation

@override
ViewMeasuredSizes measure(int maxWidth, int maxHeight) {
  // The sizing of component is not flexible. It's height is always a multiple
  // of the number of series rendered, even if that ends up taking all of the
  // available margin space.
  return ViewMeasuredSizes(
      preferredWidth: maxWidth, preferredHeight: _currentHeight);
}