mapToSqlConstant method Null safety

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

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

Implementation

@override
String mapToSqlConstant(bool? content) {
  if (content == null) {
    return 'NULL';
  }
  return content ? '1' : '0';
}