isDuplicateColumnError method
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;
}