isNoSuchTableError method

bool isNoSuchTableError([
  1. String? table
])

True if the exception is a no such table exception

Implementation

bool isNoSuchTableError([String? table]) {
  if (_message != null) {
    var expected = 'no such table: ';
    if (table != null) {
      expected += table;
    }
    return _message.contains(expected);
  }
  return false;
}