Join Slack
Is there any way to display a "Toast" when my toIntOrNull() goes to a null?
# compose
s
Sebastian
07/21/2024, 1:33 AM
Is there any way to display a "Toast" when my toIntOrNull() goes to a null?
👌 1
Sebastian
07/21/2024, 2:45 PM
Ok how??
Sebastian
07/21/2024, 2:46 PM
@Chrimaeon
c
Chrimaeon
07/21/2024, 2:48 PM
You should ask better question if you would like a different answer 😉 Use a side effect to detect changes in the value.
https://developer.android.com/develop/ui/compose/side-effects
s
Sebastian
07/21/2024, 3:01 PM
thanks!
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by