didDispose method

bool didDispose()

true if the service is in any of the DISPOSE substates. Once true, the service is terminal — no further lifecycle transitions are allowed.

Implementation

bool didDispose() => [
      ServiceState.DISPOSE_ATTEMPT,
      ServiceState.DISPOSE_SUCCESS,
      ServiceState.DISPOSE_ERROR,
    ].contains(this);