📜  飞镖中的空对象 - 任何代码示例

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

代码示例1
var customer1 = Customer.empty();
print(customer1);
// Customer [name=,age=0,location=]

var customer2 = Customer.withoutLocation("zkoder", 26);
print(customer2);
// Customer [name=zkoder,age=26,location=]