Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-29 12:47:14 +08:00
parent c7864ff4a3
commit cd26cf6d98
104 changed files with 482 additions and 391 deletions

6
lib/utils/parse_int.dart Normal file
View File

@@ -0,0 +1,6 @@
int? safeToInt(dynamic value) => switch (value) {
int() => value,
String() => int.tryParse(value),
num() => value.toInt(),
_ => null,
};