setTransform method
Sets the paint transform of this child, should only be called during layout or paint.
Implementation
void setTransform(Matrix4 newTransform) {
if (_parent.isDryLayout) {
_parentData.dryTransform = newTransform;
return;
}
assert(() {
if (_parent.debugPhase != BoxyDelegatePhase.layout &&
_parent.debugPhase != BoxyDelegatePhase.paint) {
throw FlutterError(
'The $this boxy delegate tried to position a child outside of the layout or paint methods.\n');
}
return true;
}());
_parentData.transform = newTransform;
}