Supposer I have a Text
, I want to only show it in debug mode. In release mode, it's hidden.
Now I come out an idea that set it's text string to empty.
But what if it is a Button
. How to show it only in debug mode?
In C#, I can use conditions like
#if DEBUG
#endif
Is there something alike in flutter?