SignalWidthMismatchException.forWidthOverflow constructor

SignalWidthMismatchException.forWidthOverflow(
  1. int actualWidth,
  2. int maxWidth,
  3. {String? customMessage}
)

Constructs a new Exception for when a dynamic has a wrong width.

Implementation

SignalWidthMismatchException.forWidthOverflow(int actualWidth, int maxWidth,
    {String? customMessage})
    : super(customMessage ??
          'Value has the wrong width.'
              ' Expected $actualWidth to be less than'
              ' or equal to $maxWidth.');