hasDifferences property Null safety

bool hasDifferences

Whether or not expectedColumnNames and actualColumnNames are equivalent.

Implementation

bool get hasDifferences {
  if (expectedColumnNames.length != actualColumnNames.length) {
    return true;
  }

  return !expectedColumnNames.every(actualColumnNames.contains);
}