observe method

Stream<T> observe()

let you observe the state of a bloc or cubit with immediate emission of current state works similar to BehaviorSubject observation

Implementation

Stream<T> observe() => stream.startWith(state);