canMigrateTo method

bool canMigrateTo(
  1. ColumnDefinition other
)

Implementation

bool canMigrateTo(ColumnDefinition other) {
  // It's ok to change column default or nullability.
  if (other.dartType != null &&
      dartType != null &&
      !_canMigrateType(dartType!, other.dartType!)) {
    return false;
  }

  return other.columnType == columnType && other.name == name;
}