Initializes a new BehaviorSubject with optional initial data value.
The type of data stored in the BehaviorSubject.
Optional
The initial value of the BehaviorSubject. Defaults to null.
The newly created BehaviorSubject instance.
Initializes a new BehaviorSubject with optional initial data value.