toString method
Returns a string representation of the ProductModel instance.
Implementation
@override
String toString() {
return 'Product(\n id: $id, \n name: $title, \n price: $price \n)';
}
Returns a string representation of the ProductModel instance.
@override
String toString() {
return 'Product(\n id: $id, \n name: $title, \n price: $price \n)';
}