predicateForSamples static method

PredicateDescriptor predicateForSamples({
  1. required DateTime withStart,
  2. required DateTime end,
  3. bool? strictStartDate,
  4. bool? strictEndDate,
})

Implementation

static PredicateDescriptor predicateForSamples({
  required DateTime withStart,
  required DateTime end,
  bool? strictStartDate,
  bool? strictEndDate,
}) =>
    {
      'code': 'predicateForSamples',
      'withStart': withStart.millisecondsSinceEpoch / 1000,
      'end': end.millisecondsSinceEpoch / 1000,
      if (strictStartDate != null) 'strictStartDate': strictStartDate,
      if (strictEndDate != null) 'strictEndDate': strictEndDate,
    };