欢迎来到 AI 中文社区(简称 AI 中文社),这里是学习交流 AI 人工智能技术的中文社区。 为了更好的体验,本站推荐使用 Chrome 浏览器。
Dart编程实例 - 级联操作符 (..)
本文为大家分享 Dart编程实例 - 级联操作符 (..) 的具体示例代码,提供大家参考,具体内容如下:
class Student {
void test_method() {
print("This is a test method");
}
void test_method1() {
print("This is a test method1");
}
}
void main() {
new Student()
..test_method()
..test_method1();
}
下一章:Dart编程实例 - toString 方法
本文为大家分享 Dart编程实例 - toString 方法 的具体示例代码,提供大家参考,具体内容如下:void main() { int n = 12; print(n.toString() ...
AI 中文社