Skip to content

feat: Add getLayerByName to SpriteFusionTilemapData#3755

Merged
spydon merged 2 commits intomainfrom
devakge/sprite-fusion-get-layer-by-name
Oct 25, 2025
Merged

feat: Add getLayerByName to SpriteFusionTilemapData#3755
spydon merged 2 commits intomainfrom
devakge/sprite-fusion-get-layer-by-name

Conversation

@ufrshubham
Copy link
Copy Markdown
Member

Description

Introduced a getLayerByName method to retrieve a layer by its name in SpriteFusionTilemapData.

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

Introduced a getLayerByName method to retrieve a layer by its name in SpriteFusionTilemapData. Added the collection package as a dependency to utilize firstWhereOrNull.
Added unit tests to verify the behavior of the getLayerByName method, including cases for existing layers, non-existent layers, duplicate names, and empty layer lists.
Copy link
Copy Markdown
Member

@spydon spydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@spydon spydon merged commit 9a6ca27 into main Oct 25, 2025
9 checks passed
@spydon spydon deleted the devakge/sprite-fusion-get-layer-by-name branch October 25, 2025 06:08
nickf2k pushed a commit to nickf2k/flame that referenced this pull request Nov 16, 2025
…#3755)

Introduced a `getLayerByName` method to retrieve a layer by its name in
`SpriteFusionTilemapData`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants