Skip to content

[Formatting issue] getter on list #1701

Open
@lishaduck

Description

@lishaduck

What input code did you provide to the formatter?

final comments = [
  for (final (comment, commentAvatar) in post.comments.zip(commentsAvatars))
    CommentEntity(
      comment: comment.comment,
      avatar: commentAvatar,
      authorName: comment.authorName,
      timestamp: comment.timestamp,
    ),
].lockUnsafe;

What output did the formatter produce?

final comments =
    [
      for (final (comment, commentAvatar) in post.comments.zip(
        commentsAvatars,
      ))
        CommentEntity(
          comment: comment.comment,
          avatar: commentAvatar,
          authorName: comment.authorName,
          timestamp: comment.timestamp,
        ),
    ].lockUnsafe;

What output did you expect or want the formatter to produce?

Describe how you expected the formatter to format the code, ideally by showing what you had in mind as code.

final comments = [
  for (final (comment, commentAvatar) in post.comments.zip(commentsAvatars))
    CommentEntity(
      comment: comment.comment,
      avatar: commentAvatar,
      authorName: comment.authorName,
      timestamp: comment.timestamp,
    ),
].lockUnsafe;

Anything else we should know?

Thanks!

^ You're welcome!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions