DateTimeCopyWith extension Null safety

Adds copyWith method to DateTime objects.

on
Annotations
  • @Since("2.19")

Methods

copyWith({int? year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond, int? microsecond, bool? isUtc}) DateTime
Creates a new DateTime from this one by updating individual properties.