Yang
10/18/2022, 6:25 AMComposable
lambda nullable
and assigning null
as the default value VS using {}
as the default value?Radoslaw Juszczyk
10/18/2022, 6:56 AM{}
you cannot do this:
if (navigationIcon == null) {
Spacer(TitleInsetWithoutIcon)
}
and
if (navigationIcon != {}) {
Spacer(TitleInsetWithoutIcon)
}
would not workYang
10/18/2022, 7:00 AM