dateSeparator property

String get dateSeparator

Represents date separator.

Implementation

String get dateSeparator {
  if (_dateSeparator == null) {
    if (_dateSymbols != null) {
      final String dateFormat = _dateSymbols!.DATEFORMATS[3];
      for (final String fraction in _fractionSeperators) {
        final int index = dateFormat.indexOf(fraction);
        if (index != -1) {
          _dateSeparator = dateFormat[index];
          break;
        }
      }
    } else {
      _dateSeparator = '/';
    }
  }
  return _dateSeparator!;
}
set dateSeparator (String value)

Implementation

set dateSeparator(String value) {
  _dateSeparator = value;
}