isDoneSentinel property

bool get isDoneSentinel

True when this event is the OpenAI [DONE] sentinel.

Implementation

bool get isDoneSentinel => data.trim() == '[DONE]';