missing_whitespace_between_adjacent_strings
Missing whitespace between adjacent strings.
Description
#The analyzer produces this diagnostic for a pair of adjacent string literals unless either the left-hand string ends in whitespace or the right-hand string begins with whitespace.
Example
#The following code produces this diagnostic because neither the left nor the right string literal includes a space to separate the words that will be joined:
dart
var s =
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed'
'do eiusmod tempor incididunt ut labore et dolore magna';
Common fixes
#Add whitespace at the end of the left-hand literal or at the beginning of the right-hand literal:
dart
var s =
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed '
'do eiusmod tempor incididunt ut labore et dolore magna';
除非另有说明,文档之所提及适用于 Dart 3.7.3 版本,本页面最后更新时间: 2025-05-08。 查看文档源码 或者 报告页面问题。