// Dart语言可选的命名参数
void main() {
test_param(123);
test_param(123,s1:'hello');
test_param(123,s2:'hello',s1:'world');
}
test_param(n1,{s1,s2}) {
print(n1);
print(s1);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266187.html