Breimer
Breimer

Reputation: 575

Don't know why this error occurs, on Mutable Live data

ndr

Getting error when space is not available between LiveData = _darkMode

Does anyone know why this is occurring or is this a bug?

Upvotes: 0

Views: 71

Answers (1)

Chris
Chris

Reputation: 1220

You need a space before the equal sign:

val darkMode: LiveData<Boolean> = _darkMode

Upvotes: 1

Related Questions