Flutter 颤振问题:获取多行描述值时出错

Flutter 颤振问题:获取多行描述值时出错,flutter,Flutter,我有一个多行描述,如下所示: List<Hymnal> _items = [ Hymnal( id: '1', indexNumber: '001', title: 'O Worship the Lord', hymns: " 1 O worship the Lord in the beauty of holiness, Bow down before Him, His glory proclaim; Wi

我有一个多行描述,如下所示:

List<Hymnal> _items = [
Hymnal(
    id: '1',
    indexNumber: '001',
    title: 'O Worship the Lord',
    hymns: 
    " 1
      O worship the Lord in the beauty of holiness,
      Bow down before Him, His glory proclaim;
      With gold of obedience, and incense of lowliness,
      Kneel and adore Him: the Lord is His name.")];
列表项目=[
赞美诗(
id:'1',
索引编号:“001”,
标题:“哦,敬拜主”,
赞美诗:
" 1
以圣洁之美敬拜耶和华,
在他面前下拜,他的荣耀宣告;
用顺服的金子和卑微的香,
跪下敬拜他:耶和华是他的名;
上面这句话引起了一些问题,因为我猜赞美诗的格式有问题。这是硬编码的,我只是把它放在赞美诗里。
关于如何解决此问题的建议?

对于多行字符串,必须使用三个引号:

hymns: 
  ''' 1
   O worship the Lord in the beauty of holiness,
   Bow down before Him, His glory proclaim;
   With gold of obedience, and incense of lowliness,
   Kneel and adore Him: the Lord is His name.'''

我可以帮忙。

哇,非常感谢你。我不知道它也包含在文档中。也许,我只是不知道在谷歌上键入什么键搜索,这就是为什么我在解决这个问题上有困难。谢谢你,莫雷斯!