canClose method

bool canClose()
inherited

Whether the BloC can be closed. Override this method to prevent the BloC from closing.

Implementation

bool canClose() => true;