getValue method

dynamic getValue()

Implementation

dynamic getValue() {
  if (value is Map) {
    if ((value as Map).containsKey('selected-start') &&
        (value as Map).containsKey('selected-end')) {
      return <DateTime>[
        (value as Map)['selected-start'],
        (value as Map)['selected-end'],
      ];
    } else {
      return (value as Map)['selected'];
    }
  } else {
    return value;
  }
}