init method

void init(
  1. {double width}
)

Implementation

void init({double width}) {
  this.width = width ?? this.width;
}