collate method
- int cellsPerRow
Returns an result image by putting all frames together in a table.
This method returns an image that arranges the captured frames in a table,
which has cellsPerRow
images per row with the order from left to right,
top to bottom.
The result image of this method is managed by AnimationSheetBuilder, and should not be disposed by the caller.
An example of using this method can be found at AnimationSheetBuilder.
Implementation
Future<ui.Image> collate(int cellsPerRow) async {
assert(_recordedFrames.isNotEmpty,
'No frames are collected. Have you forgot to set `recording` to true?');
final _AsyncImage result = _AsyncImage(_collateFrames(_recordedFrames, frameSize, cellsPerRow));
_results.add(result);
return result.result();
}