pullOr<T> static method

T pullOr<T>(
  1. T t
)

Retrieves the current value from the global conduit stream for type T, or returns the provided default t if null or no stream exists.

Implementation

static T pullOr<T>(T t) => subject<T>().valueOrNull ?? t;