The type that you use in a generic declaration can be nullable. Here, we
are declaring a MutableList
of String?
, so we can put null
values in
the list.
You can learn more about this in:
Tags: