Slide 18
Slide 18 text
What are Data classes?
Class that holds data.
- equals(), toString(), copy() automatically implemented
data class TextLayer(
val identifier: String = UUID.randomUUID().toString(),
val opacity: Float = 1f,
val text: String = "I'm a text layer"
)