代码之家  ›  专栏  ›  技术社区  ›  Chris G.

dart 2.1中的Mixins-“on”关键字

  •  2
  • Chris G.  · 技术社区  · 6 年前

    https://medium.com/dartlang/announcing-dart-2-1-improved-performance-usability-9f55fca6f31a

    在Mixins下:

    mixin SomeClass<T extends SomeOtherClass>
    on State<T>
    implements ThirdClass
    

    什么是“开”?

    2 回复  |  直到 6 年前
        1
  •  6
  •   Günter Zöchbauer    6 年前

    此mixin只能应用于扩展或实现 State<T> 它实际上是有状态小部件的状态。

        2
  •  2
  •   Dinko Pehar    6 年前

    在github上,您可以在 https://github.com/dart-lang/language/issues/7 . 它叫 与超级通话混音