When declaring dependencies, the API allows me to ...
# koin
z
When declaring dependencies, the API allows me to specify a nullable type, like
Copy code
factory<Flags?> { ... }
But later on, I can't pass in a nullable type param to a
get()
call:
Copy code
get<Flags?>()
    ~~~~~~ Type argument is not within its bounds: must be subtype of 'Any'.
Shouldn't these type parameters have the same bounds?
w
IIRC
get
is always non-nullable, but you can utilize
getOrNull
here