Answers for "empty object in dart"

0

empty object in dart

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=]
Posted by: Guest on July-13-2021

Browse Popular Code Answers by Language