Closed octa-one closed 4 years ago
I agree it's a good idea and thanks for the destructuring example.
This change will change the ABI although I'm not too concerned since converting to a data class should be binary compatible change.
Great, thanks for the quick response!
This change is now available in 1.0.0-beta02
.
What do you think about converting "event wrapper" classes to data classes? (TextChangeEvent, ScrollEvent, EditorActionEvent, etc)
I see at least two improvements:
distinctUntilChanged
will work correctly with overloadedequals
collect
lambdas, for example:// with data class textView.textChangeEvents().collect { (view, text, , , _) -> doSmth(view, text) }