updateSql method Null safety

String updateSql(
  1. String statement
)

Implementation

String updateSql(String statement) {
  final lines = <String>[
    'UPDATE "${tableInfo.tableName}" SET ',
    tableInfo.fields
        .map((FieldDeclaration fd) => '"${fd.fieldName}"=@${fd.fieldName}')
        .toList()
        .join(', '),
    ' $statement;'
  ];
  return lines.join('');
}