subtract method Null safety
- Duration duration
Returns a new DateTime instance with duration
subtracted from this.
final today = DateTime.now();
final fiftyDaysAgo = today.subtract(const Duration(days: 50));
Implementation
DateTime subtract(Duration duration) => _value.subtract(duration);