mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-16 13:23:41 +00:00
feat: direct call download api by cgo dart
This commit is contained in:
1 parent
467ada5500
commit
91dfd78b77
71 files changed
+6936
-1883
No files matched your search
@@ -0,0 +1,10 @@
|
||||
extension ApplyExtension<T> on T {
|
||||
T apply(void Function(T) fn) {
|
||||
fn(this);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
extension LetExtension<T> on T {
|
||||
R let<R>(R Function(T) fn) => fn(this);
|
||||
}
|
||||
Reference in new issue
Block a user