MultipleElementsFoundException constructor

MultipleElementsFoundException({
  1. required DartElementMatcher matcher,
  2. required DartElementsParent<DartElement> source,
  3. required List<DartElement> elementsFound,
})

Implementation

MultipleElementsFoundException(
    {required this.matcher,
    required this.source,
    required this.elementsFound})
    : message =
          'Found more than one element on source $source with matcher $matcher.'
              'Total elements found: ${elementsFound.length}';