Adds a secondary copy method

This commit is contained in:
zontreck 2024-05-23 17:49:35 -07:00
parent 5f9f0e08ef
commit dd40eace38

View file

@ -75,6 +75,10 @@ class Time {
this.seconds = seconds;
}
Time copy() {
return Time(hours: hours, minutes: minutes, seconds: seconds);
}
factory Time.copy(Time other) {
return Time(
hours: other.hours, minutes: other.minutes, seconds: other.seconds);