Future<List<int>?> exportGif() async { final frames = await exportFrames(); if (frames == null) { return null; } return compute( _exportGif, DataHolder(frames, _maxWidthFrame, _maxHeightFrame)); }