2

What is the difference between Flowable<List<VanDataModel>> and Flowable<List<VanDataModel!>!> in Kotlin using Rx ?

Sujin Shrestha
  • 1,203
  • 2
  • 13
  • 23

1 Answers1

4

It's Kotlin, not RxJava. A type notated with ! is called platform type coming from Java APIs. You could refer to platform types as "types of unknown nullability". Also important to know is that you cannot use the exclamation-marked type for your own types, it's not part of the Kotlin syntax, it's only a notation

See this.

s1m0nw1
  • 76,759
  • 17
  • 167
  • 196