📜  位置参数 dart - TypeScript 代码示例

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

代码示例1
void main() {
  print(fullname("yo", "hope you have amazing day"));
}

// this fancy [] will do the job
String fullname(String fname, String lname, [String age = '23']) {
  return fname + lname + age;
}