Constant constructor

Constant constructor

class ImmutablePoint { 
   static final ImmutablePoint origin = 
      const ImmutablePoint(0, 0); 
   final num x, y; 
   const ImmutablePoint(this.x, this.y); 
}

Related concepts

Constant constructor

Constant constructor — Structure map

Clickable & Draggable!

Constant constructor — Related pages: