Skip to content

Conversation

@krushnarout
Copy link
Member

changed wal constructor from const [] to a mutable List

closes #3570

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly fixes a bug in the Wal class constructor. Previously, the data property, which is a mutable list, was initialized with an immutable const [], which would cause runtime errors when the list was later modified. The change to accept a nullable list and initialize it with a new mutable list if none is provided is a proper solution to this problem. The fix is well-implemented and resolves the issue effectively.

@krushnarout krushnarout requested a review from mdmohsin7 December 3, 2025 01:19
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.

FlutterError - Unsupported operation: Cannot add to an unmodifiable list

2 participants