collate method Null safety
- int cellsPerRow
Returns an result image by putting all frames together in a table.
This method returns a table of captured frames, cellsPerRow
images
per row, from left to right, top to bottom.
An example of using this method can be found at AnimationSheetBuilder.
Implementation
Future<ui.Image> collate(int cellsPerRow) async {
final List<ui.Image> frames = await _frames;
assert(frames.isNotEmpty,
'No frames are collected. Have you forgot to set `recording` to true?');
return _collateFrames(frames, frameSize, cellsPerRow);
}