reVal method

dynamic reVal(
  1. dynamic value
)

Implementation

dynamic reVal(dynamic value) {
  if (value is String) {
    if (value.isEmpty) {
      return '';
    }
    return value.replaceAll("\"", "'").replaceAll("'", "\\'");
  } else {
    return value;
  }
}