reVal method

String? reVal(
  1. dynamic value
)

Implementation

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