opt member relation

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-15 09:25:29 +08:00
parent c1aeaca09e
commit 1548624920
4 changed files with 40 additions and 15 deletions

View File

@@ -37,6 +37,10 @@ abstract final class Utils {
return Clipboard.setData(ClipboardData(text: text));
}
static Future<void> copyJson(Object? json, {String? toastText}) {
return copyText(jsonEncoder.convert(json), toastText: toastText);
}
static String makeHeroTag(dynamic v) {
return v.toString() + random.nextInt(9999).toString();
}