SinglePageObjectException constructor

const SinglePageObjectException(
  1. PageLoaderElement element,
  2. int actualCount
)

Implementation

const SinglePageObjectException(PageLoaderElement element, int actualCount)
    : super(
          'Unable to locate element.\n\n'
          'Expected to find exactly 1 match, but found $actualCount for:',
          element);