Skip to content

[FR]: Apply data objects in uiState sealed interfaces #998

Description

@KDW03

Is there an existing issue for this?

  • I have searched the existing issues

Describe the problem

In Kotlin version 1.9.0, the declaration of data object has been stabilized, designed to form a symmetry with data class. These modifications are particularly useful in specific use cases such as sealed hierarchies. However, in some parts of codebase, this application has not been implemented

If you agree with this approach, I'd like to proceed with submitting a pull request. 😊

Describe the solution

By leveraging the data object feature introduced and stabilized in Kotlin version 1.9.0, this refactor will provide a more descriptive toString() representation, ensuring a uniform approach to defining states across sealed interfaces and enhancing the debuggability with the improved toString() method.

Additional context

image

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions