toDefaultSubject
Converts a MutableStateFlow to a StateFlowDefaultSubject
Parameters
The default value of R to observe if the MutableStateFlow emits null
.
The CoroutineScope on which to observe the MutableStateFlow
The CoroutineContext in which to observe the MutableStateFlow
Converts a MutableSharedFlow to a SharedFlowDefaultSubject
Parameters
The default value of R to observe if the MutableSharedFlow emits null
.
The initial value to observe until the MutableSharedFlow emits.
The CoroutineScope on which to observe the MutableSharedFlow
The CoroutineContext in which to observe the MutableSharedFlow
Converts a ReadWriteProperty to a ReadWritePropertyDefaultSubject
Parameters
The default value of R to observe if the ReadWriteProperty has a value of null
.
The CoroutineScope on which to emit changes to the ReadWriteProperty
The CoroutineContext in which to emit changes to the ReadWriteProperty