canClose method

bool canClose()

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

Implementation

bool canClose() => true;