Rectangle.from constructor

Rectangle.from(
  1. String name,
  2. Offset position,
  3. Size size,
  4. Color color, [
  5. dynamic style = PaintingStyle.fill,
])

Implementation

Rectangle.from(String name, Offset position, Size size, Color color,
    [style = PaintingStyle.fill])
    : this(name, size, position, color, style: style);