explainAmbiguity method

String explainAmbiguity()

Implementation

String explainAmbiguity() {
  if (matches.isEmpty) {
    return '$scope $selector found no matches.';
  }
  if (matches.length == 1) {
    return '$scope $selector resolved uniquely to ${matches.single.describe()}.';
  }
  return '$scope $selector matched ${matches.length} widgets.\n'
      '${_describeMatches(matches)}';
}