AnimationSheetBuilder constructor Null safety
Starts a session of building an animation sheet.
The frameSize is a tight constraint for the child to be recorded, and must not be null.
The allLayers controls whether to record elements drawn out of the subtree, and defaults to false.
Implementation
AnimationSheetBuilder({
required this.frameSize,
this.allLayers = false,
}) : assert(!kIsWeb), // Does not support Web. See [AnimationSheetBuilder].
assert(frameSize != null);