Skip to content

Instantly share code, notes, and snippets.

@ubuntudroid
Created August 10, 2019 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ubuntudroid/13ab748ce11a4715745f9d2d65bea4e0 to your computer and use it in GitHub Desktop.
Save ubuntudroid/13ab748ce11a4715745f9d2d65bea4e0 to your computer and use it in GitHub Desktop.
// changing the color name
colorDao.upsert(oldColorDefinition.copy(name="better color name"))
// changing the color code
colorDao.upsert(oldColorDefinition.copy(hex="#ca9555"))
// changing color code and name
colorDao.upsert(oldColorDefinition.copy(name="better color name", hex="#ca9555"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment