operator * method
Create new CustomPoint where x and y are multiplied by factor
Implementation
@override
CustomPoint<T> operator *(num /*T|int*/ factor) {
return CustomPoint<T>((x * factor), (y * factor));
}
Create new CustomPoint where x and y are multiplied by factor
@override
CustomPoint<T> operator *(num /*T|int*/ factor) {
return CustomPoint<T>((x * factor), (y * factor));
}