eff96430f5
doc: Update README.md #102 435cfdf739
2024-12-11 13:51:41 +00:00
021dcc57aa
website: update touch-icon. 7fb6ce9190
2024-10-14 20:17:05 +00:00
8851b9aab9
website: modify favicon. #840 145aa54a4e
2024-10-14 20:05:37 +00:00
7031c98ce4
doc: update docs/vue.md #832 a74c7e2092
2024-09-29 10:30:54 +00:00
0859c5b67d
doc: update docs/flutter.md #830 ade6fbe3d0
2024-09-24 07:02:37 +00:00
6a18428838
doc: update docs/dart.md ( #814 )
...
### Current behavior
The current asynchronous login sample code has the following issues:
1. The `main` function tries to use `await userName()`, but `userName` is a string variable, not a function.
2. the `login` function should be called and `await` should be used to wait for its result.
### Expected behavior
The `main` function should correctly call the `login` function and use `await` to wait for the result, then print out the username.
### Sample code
Here is the corrected code:
```dart
Future<String> login() {
String userName = "Temidjoy";
return Future.delayed(
Duration(seconds: 4), () => userName
).
}
main() async {
print('Authenticating please wait...') The
String result = await login();
String result = await login(); print(result);
} f0da2a3397
2024-08-15 01:10:54 +00:00
e6e406cf4e
doc: update dart.md ( #806 )
...
* doc: update dart.md
* doc: update dart.md
完善 import 部分内容
* doc: update dart.md
修正翻译错误,将 “地图” 修改为 “映射” d7ea92c019
2024-07-24 16:04:16 +00:00
1f1c10e329
doc: update dart.md ( #801 ) a45e63a966
2024-07-15 10:16:17 +00:00
5e12d2941c
feat: add stylex.md 222f5bc604
2024-06-25 15:23:27 +00:00
2a127e1c35
doc: update docs/quickreference.md ae594eb45a
2024-06-06 13:52:02 +00:00
4f23dd727b
doc: update docs/quickreference.md 8fad195069
2024-06-06 03:02:49 +00:00
bfcb64e5fd
doc: Update README.md ( #557 ) ( #102 ) 137210c886
2024-03-06 06:21:29 +00:00
aebd730bd9
doc: update docs/dart.md ( #516 )
...
* 新增Kotlin的高阶函数用法
* 新增和调整若干Kotlin示例代码
[新增] 扩展函数
[新增] 运算符重载
[新增] 中缀表达式
[新增] 次构造函数
[新增] Data 数据类
[新增] 内部类
[新增] object 单例类
[修改] 主构造函数示范代码,调整了部分缩进和变量定义。
* 新增Dart部分示例代码
[新增] 扩展函数
[新增] 运算符重载函数
[新增] 延迟初始化 77b4802177
2024-02-12 14:22:56 +00:00
2fd6aa6928
ci: update workflows config. 75830aa8bc
2023-12-06 15:42:17 +00:00
28b946cce2
chore: update .refsrc.json cc2061077c
2023-09-11 12:09:06 +00:00
fe1aa4cd3c
chore(deps): update dependency refs-cli to v1.5.1 c407dce74b
2023-09-11 12:03:56 +00:00
7e9fc4b991
chore: update dependency refs-cli to v1.4.1 4d813c765f
2023-06-06 06:04:26 +00:00
161a610ef9
doc: update README.md a732ff3892
2023-05-20 04:10:26 +00:00
428cef8be3
doc: update docs/kotlin.md ( #331 ) cb293dc036
2023-03-16 07:53:43 +00:00
c8395ba595
doc: update README.md #102 64b52fc1bc
2023-03-01 13:53:42 +00:00
63aa12c584
doc: update README.md dc77e2bf7f
2022-11-26 10:31:11 +00:00
85f6066582
chore: compile document using refs-cli. d8a05dfbd5
2022-11-25 16:05:50 +00:00
45b67f7121
doc: update typescript.md 33ed20a7ea
2022-11-25 06:11:48 +00:00
a1d950e59f
website: add search arrow selection. b41c170b0c
2022-11-21 16:19:28 +00:00
2b9d38d8a9
website: search input add palceholder. 473822f988
2022-11-20 11:19:00 +00:00
fccfe5bda7
website: update dark theme issue. 79dcdc7379
2022-11-19 19:39:17 +00:00
49357a2aa3
doc: update css.md 98eae38934
2022-11-19 19:29:25 +00:00
e1c3606c60
docs: update dart.md ( #147 ) e4444148f1
2022-11-19 14:24:12 +00:00
19d0d2fb78
doc: update dart.md #145 b67c2ed842
2022-11-19 12:26:00 +00:00
461391e585
docs: update dart.md ( #145 )
...
* doc: update dart.md
* doc: update dart.md 3e1fd804db
2022-11-19 12:11:22 +00:00
f412635104
website: add search data. #105 b034d7970d
2022-11-17 08:00:19 +00:00
044600b018
website: update footer. #102 5c8b11767f
2022-11-17 05:29:10 +00:00
e7a4623eb8
feat: add dart.md
#58 7dab4bc821
2022-11-13 08:21:01 +00:00