claimDate method

DateTime? claimDate(
  1. String claimDate
)

Implementation

DateTime? claimDate(String claimDate) {
  final claimFounded = claim(claimDate);
  if (claimFounded == null || claimFounded is! int) {
    throw DataExtractorTokenException.fromMessage('invalid claim date');
  }
  return DateTime.fromMillisecondsSinceEpoch(claimFounded * 1000);
}