NodeWithSize constructor

NodeWithSize(
  1. Size size
)

Creates a new NodeWithSize.

The default size is zero and the default pivot point is the origin. Subclasses may change the default values.

var myNodeWithSize = NodeWithSize(Size(1024.0, 1024.0));

Implementation

NodeWithSize(this.size) {
  pivot = Offset.zero;
}