uniqueColumnSet property Null safety

List<String>? uniqueColumnSet

The names of a set of columns that must be unique for each row in this table.

Are sorted alphabetically. Not modifiable.

Implementation

List<String>? get uniqueColumnSet =>
    _uniqueColumnSet != null ? List.unmodifiable(_uniqueColumnSet!) : null;
void uniqueColumnSet=(List<String?>? columnNames)

Implementation

set uniqueColumnSet(List<String?>? columnNames) {
  if (columnNames != null) {
    _uniqueColumnSet = List.from(columnNames);
    _uniqueColumnSet?.sort((String a, String b) => a.compareTo(b));
  } else {
    _uniqueColumnSet = null;
  }
}