copyWith method
Creates a copy of this Area but with the given fields replaced with the new values.
Implementation
Area copyWith({
Point<double>? topLeft,
Point<double>? topRight,
Point<double>? bottomLeft,
Point<double>? bottomRight,
}) {
return Area(
topLeft: topLeft ?? this.topLeft,
topRight: topRight ?? this.topRight,
bottomLeft: bottomLeft ?? this.bottomLeft,
bottomRight: bottomRight ?? this.bottomRight,
);
}