complete<T> method
void
complete<T>(
- T value
Implementation
void complete<T>(T value) {
final completer = _state.currentCompleter;
if (completer == null || completer.isCompleted) return;
final widget = _state.currentWidget;
if (widget != null) {
_state._history.add(_HistoryEntry(widget, value));
}
_state.currentWidget = null;
_state.currentCompleter = null;
completer.complete(value);
_onRequestRedraw();
}