dayPrefix property

String get dayPrefix

If value is NULL or not in covered cases return default value defaultString Else returns the mapped value

Implementation

String get dayPrefix {
  String prefix = defaultString;
  switch (this) {
    case -1:
      prefix = 'Yesterday';
      break;
    case 0:
      prefix = 'Today';
      break;
    case 1:
      prefix = 'Tomorrow';
      break;
  }
  return prefix;
}