pawel.urban
11/06/2018, 3:45 PMprivate val _title = BehaviorRelay.create<String>()
val title: Observable<String> = _title
without the backing property?hudsonb
11/06/2018, 3:52 PMtitle
as a Observable<String>
rather than a BehaviorRelay<String>
but still want access to it within the class as BehaviorRelay<String>
ya? Nope thats how I do itpawel.urban
11/06/2018, 3:53 PMhudsonb
11/06/2018, 3:57 PMRuckus
11/06/2018, 3:57 PMval title: Observable<String> get() = _title
it won't creating a backing field, so it should be just as "optimized" as clean Java.