getPriceText method
Implementation
String? getPriceText() {
var text = "";
final price = details?.price;
if (price != null) {
text += price;
}
return text.takeIf((it) => it.isNotEmpty);
}
String? getPriceText() {
var text = "";
final price = details?.price;
if (price != null) {
text += price;
}
return text.takeIf((it) => it.isNotEmpty);
}