SentimentResult constructor Null safety

SentimentResult(
  1. double average,
  2. int positive,
  3. int negative,
  4. int neutral
)

Implementation

SentimentResult(double average, int positive, int negative, int neutral) {
  this.average = average;
  this.positive = positive;
  this.negative = negative;
  this.neutral = neutral;
}