diff --git a/app/lib/services/wals.dart b/app/lib/services/wals.dart index ee216852591..491d27fc827 100644 --- a/app/lib/services/wals.dart +++ b/app/lib/services/wals.dart @@ -142,9 +142,10 @@ class Wal { this.storageOffset = 0, this.storageTotalBytes = 0, this.fileNum = 1, - this.data = const [], + List>? data, this.totalFrames = 0, this.syncedFrameOffset = 0}) { + this.data = data ?? >[]; frameSize = codec.getFrameSize(); }