operator * method

  1. @override
CustomPoint<T> operator *(
  1. num factor
)
override

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));
}