addNumber method

void addNumber(
  1. String num, [
  2. String? via
])

Implementation

void addNumber(String num, [String? via]) {
  _numbers.add(num);
  if (via != null) {
    _vias ??= List.filled(_numbers.length - 1, '');
    _vias!.add(via);
  } else if (_vias != null) {
    _vias!.add('');
  }
}