property<TState> method

BehaviorSubject<PropertyState<TState>> property<TState>([
  1. PropertyState<TState> initial = const LoadingState()
])

Instantiates an auto-disposing BehaviourSubject with a PropertyState.

Disposal is taken care of in the dispose method.

Implementation

BehaviorSubject<PropertyState<TState>> property<TState>(
    [PropertyState<TState> initial = const LoadingState()]) {
  return subject<PropertyState<TState>>(initial);
}