DateTimeCopyWith extension

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

Available on DateTime, provided by the DateTimeCopyWith extension

Creates a new DateTime from this one by updating individual properties.