摘要: 官方文档链接 简介 匹配和解构 // 匹配 const a = 'a'; const b = 'b'; switch (obj) { // List pattern [a, b] matches obj first if obj is a list with two fields, // then 阅读全文
posted @ 2024-05-29 17:31 ayubene 阅读(88) 评论(0) 推荐(0)
摘要: 官方文档链接 基本类型 Dart支持以下类型: Numbers (int, double) Strings (String) Booleans (bool) Records ((value1, value2)) Lists (List, also known as arrays) Sets (Set 阅读全文
posted @ 2024-05-29 13:20 ayubene 阅读(41) 评论(0) 推荐(0)