isDuplicateColumnError method

bool isDuplicateColumnError([
  1. String? column
])

True if the exception is a duplicate column error

Implementation

bool isDuplicateColumnError([String? column]) {
  if (_message != null) {
    var expected = 'duplicate column name: ';
    if (column != null) {
      expected += column;
    }
    return _message.contains(expected);
  }
  return false;
}