Last active
October 9, 2019 17:41
-
-
Save Laimiux/e48a454698c70ff6a4359d12d2b6b49d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StopwatchFormula : Formula<Unit, StopwatchFormula.State, StopwatchRenderModel> { | |
data class State( | |
val timePassedInMillis: Long, | |
val isRunning: Boolean | |
) | |
override fun initialState(input: Unit): State = State( | |
timePassedInMillis = 0, | |
isRunning = false | |
) | |
.... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment