Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-30 14:50:54 +08:00
parent 80fa0240e9
commit 8d94c0405f
115 changed files with 3150 additions and 1438 deletions

View File

@@ -21,11 +21,7 @@ class DurationUtil {
if (data == null || data.isEmpty) {
return 0;
}
List<int> split = data
.split(':')
.reversed
.map(int.parse)
.toList();
List<int> split = data.split(':').reversed.map(int.parse).toList();
int duration = 0;
for (int i = 0; i < split.length; i++) {
duration += split[i] * pow(60, i).toInt();