1. @override
void add(input)

Source

@override
void add(input) {
  if (input is String) {
    input = num.parse(input, (e) => null);
  }

  if (input is! num) {
    return;
  }

  value = max(value == null ? double.NEGATIVE_INFINITY : value, input);
}