getPriceText method

String? getPriceText()

Implementation

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