hey everyone! what do I do if I have a data class,...
# getting-started
c
hey everyone! what do I do if I have a data class, there is a
@StringRes
there which is optional, and I want to give it a default value, and I'm not sure which value do I give it? I can't do just
" "
cause it's not
String
, I saw some people using the
app_name
, what is your approach?
y
Maybe make it nullable and have the default be
null
❤️ 2
c
omg yes,
null
it is, thank you 😄
e
c
it is Int yes! thank you