finishReason property

ChatCallFinishReason? get finishReason

Returns the ChatCallFinishReason this ChatCall finished with, if any.

Implementation

ChatCallFinishReason? get finishReason =>
    finishReasonIndex == null
        ? null
        : ChatCallFinishReason.values[finishReasonIndex!];
set finishReason (ChatCallFinishReason? reason)

Sets the ChatCallFinishReason of this ChatCall to the reason.

Implementation

set finishReason(ChatCallFinishReason? reason) {
  finishReasonIndex = reason?.index;
}