Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

MutableLiveData initialised on declaration please. #64

@Gordon-McCrone

Description

@Gordon-McCrone

Example:
val liveArticleData = MutableLiveData

()
When liveArticleData.value is used compiler requires forced unwrap (!!)
Forced unwrap is considered last resort and poor programming practice.

Request:
To be able to initialize MutableLiveData at declartion, so do not have to check null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions