menu
Dart
dart:core
DateTimeCopyWith extension
DateTimeCopyWith
brightness_4
brightness_5
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
Classes
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
Record
RegExp
RegExpMatch
RuneIterator
Runes
Set
Sink
StackTrace
Stopwatch
Stream
String
StringBuffer
StringSink
Symbol
Type
Uri
UriData
WeakReference
Extensions
DateTimeCopyWith
EnumByName
EnumName
FutureExtensions
FutureIterable
FutureRecord2
FutureRecord3
FutureRecord4
FutureRecord5
FutureRecord6
FutureRecord7
FutureRecord8
FutureRecord9
IterableExtensions
NullableIterableExtensions
Constants
deprecated
override
Functions
identical
identityHashCode
print
Typedefs
Comparator
Exceptions
ArgumentError
AssertionError
ConcurrentModificationError
Error
Exception
FormatException
IndexError
IntegerDivisionByZeroException
NoSuchMethodError
OutOfMemoryError
ParallelWaitError
RangeError
StackOverflowError
StateError
TypeError
UnimplementedError
UnsupportedError
Methods
copyWith