CsvExParser constructor

CsvExParser({
  1. String separator = ',',
})

Implementation

CsvExParser({
  String separator = ',',
})  : _separator = separator.isEmpty
          ? throw ArgumentError('Must not be empty', 'separator')
          : separator,
      _separatorChar = separator.runes.length != 1
          ? throw ArgumentError.value(separator, 'separator',
              'The length of the separator must be one character')
          : separator.runes.first;