shortDescription property

String get shortDescription

Get a short description of the expectation.

Implementation

String get shortDescription {
  if (path != null && path!.isNotEmpty) {
    return '$path: $message';
  }

  return message;
}