checkStatus<X> method

X? checkStatus<X>(
  1. X operation()
)

Implementation

X? checkStatus<X>(X operation()) {
  if (_isDisposed) {
    return null;
  } else {
    return operation();
  }
}