getMaxWidth method

  1. @override
num? getMaxWidth(
  1. num positionX,
  2. num viewportWidth
)
override

The max width.

Returns null if max width is not specified.

Implementation

@override
num? getMaxWidth(num positionX, num viewportWidth) {
  if (_popupSizeDelegate != null) {
    return _popupSizeDelegate!.getMaxWidth(positionX, viewportWidth);
  } else {
    return 448;
  }
}