AnimationSheetBuilder constructor Null safety

  1. {required Size frameSize,
  2. bool allLayers}

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.


  required this.frameSize,
  this.allLayers = false,
}) : assert(!kIsWeb), // Does not support Web. See [AnimationSheetBuilder].
     assert(frameSize != null);