tryComplete method

bool tryComplete([
  1. FutureOr? value
])

Implementation

bool tryComplete([FutureOr<dynamic>? value]) {
  if (!isCompleted) {
    complete(value);
    return true;
  }

  return false;
}