sink method

dynamic sink(
  1. TBlocstarLogicBaseContext updatedContext
)

Implementation

sink(TBlocstarLogicBaseContext updatedContext) {
  if (isClosed == false) {
    context = updatedContext ?? context;
    _controller.sink.add(context);
  } else {
    throw new Exception("Cannot sink into a closed controller");
  }
}