Dart 泛型

方法添加泛型
1 | T getData<T>(T value) { |
类添加泛型
1 | class Pppp<T> { |
泛型 接口
1 | abstract class ABC<T> { |
实现泛型接口
1 | class Wq<T> implements ABC<T> { |
- Post title:Dart 泛型
- Post author:xxxixxxx
- Create time:2020-12-27 12:02:00
- Post link:https://xxxixxx.github.io/2020/12/27/300-Dart基础7/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.
Comments