Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

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