Add a copy method to Time
This commit is contained in:
parent
730535d4b8
commit
5f9f0e08ef
2 changed files with 6 additions and 1 deletions
|
@ -75,6 +75,11 @@ class Time {
|
|||
this.seconds = seconds;
|
||||
}
|
||||
|
||||
factory Time.copy(Time other) {
|
||||
return Time(
|
||||
hours: other.hours, minutes: other.minutes, seconds: other.seconds);
|
||||
}
|
||||
|
||||
factory Time.fromNotation(String notation) {
|
||||
int hours = 0;
|
||||
int minutes = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue