menu
Dart
dart:core
DateTimeCopyWith extension
DateTimeCopyWith
brightness_4
description
DateTimeCopyWith
extension
Null safety
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
Classes
BidirectionalIterator
BigInt
bool
Comparable
DateTime
Deprecated
double
Duration
Enum
Expando
Finalizer
Function
Future
int
Invocation
Iterable
Iterator
List
Map
MapEntry
Match
Null
num
Object
Pattern
pragma
Provisional
Record
RegExp
RegExpMatch
RuneIterator
Runes
Set
Sink
StackTrace
Stopwatch
Stream
String
StringBuffer
StringSink
Symbol
Type
Uri
UriData
WeakReference
Extensions
DateTimeCopyWith
EnumByName
EnumName
FutureExtensions
Constants
deprecated
override
provisional
proxy
Functions
identical
identityHashCode
print
Typedefs
Comparator
Exceptions
AbstractClassInstantiationError
ArgumentError
AssertionError
CastError
ConcurrentModificationError
CyclicInitializationError
Error
Exception
FallThroughError
FormatException
IndexError
IntegerDivisionByZeroException
NoSuchMethodError
NullThrownError
OutOfMemoryError
RangeError
StackOverflowError
StateError
TypeError
UnimplementedError
UnsupportedError
Methods
copyWith
Cookies management controls