rename method

Unit<D> rename({
  1. String? symbol,
  2. String? name,
})

Renames this unit and returns the same instance.

Implementation

Unit<D> rename({String? symbol, String? name}) {
  this.symbol = symbol ?? this.symbol;
  this.name = name ?? this.symbol;
  return this;
}