📜  函数的返回类型 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:07.541000             🧑  作者: Mango

代码示例1
The result of a function is called its return value and the data type of the return value is called the return type. If a function declaration does not specify a return type, the compiler assumes an implicit return type of int . ... A function can have a return type that is a user-defined type.