copy method Null safety

  1. @override
void copy(
  1. covariant LinearGradientBase source
)

Copies property values, currently doesn't trigger change callbacks. It's meant to be a helper for clone.

Implementation

@override
void copy(LinearGradientBase source) {
  super.copy(source);
  _startX = source._startX;
  _startY = source._startY;
  _endX = source._endX;
  _endY = source._endY;
  _opacity = source._opacity;
}