mapToSqlConstant method Null safety

  1. @override
String mapToSqlConstant(
  1. num? content
)
override

Maps the given content to a sql literal that can be included in the query string.

Implementation

@override
String mapToSqlConstant(num? content) {
  if (content == null) {
    return 'NULL';
  }
  return content.toString();
}