rename method Null safety

ConfigParams rename(
  1. ConfigParams options,
  2. String fromName,
  3. String toName
)

Renames property if the target name is not used.

  • options configuration options
  • fromName original property name.
  • toName property name to rename to. return updated configuration options