formatValue method

  1. @override
String formatValue(
  1. dynamic value
)
override

Implementation

@override
String formatValue(dynamic value) {
  if (value == null) return 'NULL';
  if (value is String) return "'${value.replaceAll("'", "''")}'";
  if (value is num) return value.toString();
  if (value is bool) return value ? 'TRUE' : 'FALSE';
  return "'$value'";
}