createForDateTime method

String createForDateTime(
  1. List<String> options
)

Implementation

String createForDateTime(List<String> options) {
  if (options.hasStartsWith('now')) {
    return 'clock.now()';
  }
  if (options.hasStartsWithOr(['max', 'min'])) {
    return _minMaxDateFaker(options);
  }

  throw 'No faker could be generated for type `DateTime` with options $options';
}