This topic created in 1574 days ago, the information mentioned may be changed or developed.
3 replies • 2022-05-19 00:26:33 +08:00
 |
|
1
dcsuibian May 18, 2022 via Android
没学过 Flutter 。 你这个 eval 是个能接收 T 类型参数的函数,而不是个能接受 Event 类型的函数。 比如我来个 AnotherEvent extends Event 。 这时候 T 就是 AnotherEvent 。 我 eval 函数能接收 AnotherEvent 关你 SomeEvent 啥事
|
 |
|
3
hsfzxjy May 19, 2022 via Android
可以拓展了解两个概念 covariance 和 contravariance
|