parseAltura static method

double? parseAltura(
  1. dynamic value
)

Implementation

static double? parseAltura(dynamic value) {
  if (value == null) return null;
  try {
    return double.parse(value.toString().replaceAll(',', '.'));
  } catch (_) {
    return null;
  }
}