mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-22 11:30:13 +08:00
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user