menu
Dart
dart:core
DateTimeCopyWith extension
DateTimeCopyWith
dark_mode
light_mode
description
DateTimeCopyWith
extension
Adds
copyWith
method to
DateTime
objects.
on
DateTime
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.
Dart
dart:core
DateTimeCopyWith extension
dart:core library
Cookies management controls