Choice constructor

Choice({
  1. required String text,
  2. required int index,
  3. required dynamic logprobs,
  4. String? finishReason,
})

Creates a new Choice instance.

Implementation

Choice({
  required this.text,
  required this.index,
  required this.logprobs,
  this.finishReason,
});