Skip to content

Commit 646ca1d

Browse files
committed
Drop DateTimeExtensions
There is a copyWith method available in the upstream since Dart 2.19: dart-lang/sdk#24644
1 parent a92ba22 commit 646ca1d

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

lib/dart_extensions/date_time_extensions.dart

Lines changed: 0 additions & 33 deletions
This file was deleted.

lib/utilities/time_utils.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import '../dart_extensions/date_time_extensions.dart';
2-
31
class TimeUtils {
42
static DateTime nearestTimeIteration(DateTime time, int iterationInMinutes) {
53
int hour = time.hour;
@@ -18,7 +16,7 @@ class TimeUtils {
1816
minutes = 0;
1917
}
2018

21-
return time.clone(
19+
return time.copyWith(
2220
hour: hour,
2321
minute: minutes,
2422
second: 0,

0 commit comments

Comments
 (0)