daysDifference method

int? daysDifference(
  1. DateTime other
)

Returns the number of whole days between value and other. Returns null when value is null.

Implementation

int? daysDifference(DateTime other) => value?.difference(other).inDays.abs();