parseAmount static method

String? parseAmount(
  1. double? amount
)

Parse or nullify amount data

@param amount @return

Implementation

static String? parseAmount(double? amount) {
    if (amount == null) {
      return null;
    }

	if (amount > 0) {
		return amount.toString();
	}

	return null;
}