add method Null safety
- Duration duration
Returns a new DateTime instance with duration
added to this.
Returns null if this is null
final today = DateTime.now();
final fiftyDaysFromNow = today.add(const Duration(days: 50));
Implementation
DateTime? add(Duration duration) => _value?.add(duration);