Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-29 12:47:14 +08:00
parent e185ed1a85
commit e0ae93847b
104 changed files with 480 additions and 389 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,
};