https://dart.ranyunlong.com/

    https://github.com/dart-lang/dartdoc

    http://web.mit.edu/dart-lang_v1.24.2/gen-dartdocs/index.html

    https://book.flutterchina.club/

    国外安卓开发者博客

    https://dart.ranyunlong.com/guide/handbook/functions.html#%E5%91%BD%E5%90%8D%E5%8F%AF%E9%80%89%E5%8F%82%E6%95%B0

    对象操作符:
    ? 条件运算符
    as 类型转换,强转
    is 类型判断
    .. 级联操作(连缀)

    1. void main(List<String> args) {
    2. SomaTempVO soma = SomaTempVO.build(12.1, 56);
    3. // 判断类型
    4. print(soma is SomaTempVO);
    5. // 强转为Object类型
    6. (soma as Object).toString();
    7. // 级联操作
    8. soma
    9. ..hum = 60
    10. ..temp = 5
    11. ..updateTime = DateTime.parse("2020-01-16");
    12. print(soma.toJson());
    13. //如果对象为空,则不会运行这句
    14. soma = null;
    15. soma?.printPublic();
    16. }

    image.png

    image.png
    image.png