Vishnu Haridas
11/04/2019, 10:05 AMval
with a backing property, or a public property with a private setter? Is there any difference?
For example,
class Foo {
// (1) - public property with a private setter
var isSyncing = false
private set
// (2) - val with a backing property
private var isSyncing_ = false
val isSyncing get() = isSyncing_
}
hallvard
11/04/2019, 10:11 AMVishnu Haridas
11/04/2019, 10:19 AMhallvard
11/04/2019, 10:21 AMVishnu Haridas
11/04/2019, 10:23 AMStephan Schroeder
11/04/2019, 10:28 AMBurkhard
11/04/2019, 10:32 AMList
and private MutableList