copy method Null safety

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

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

Implementation

@override
void copy(StrokeBase source) {
  super.copy(source);
  _thickness = source._thickness;
  _cap = source._cap;
  _join = source._join;
  _transformAffectsStroke = source._transformAffectsStroke;
}