alexstyl / contactstore

A modern, strongly-typed contacts API for Android.
https://alexstyl.github.io/contactstore
Apache License 2.0
440 stars 15 forks source link

Add builder version of mutableCopy #36

Closed alexstyl closed 2 years ago

alexstyl commented 2 years ago

Example of usage:

        val newContact = contact.mutableCopy {
            mails.add(
                LabeledValue(
                    MailAddress("555@mail.com"),
                    Label.LocationHome
                )
            )
        }