withDefaults static method
Equivalent to Link.new, except that if source
, target
, x
, y
are
not specified, the respective defaults will be used.
Implementation
static Link<List<num>> withDefaults(
{required CurveFactory curve,
List<num> Function(Link<List<num>>, [List<Object?>?]) source = linkSource,
List<num> Function(Link<List<num>>, [List<Object?>?]) target = linkTarget,
num Function(List<num>, [List<Object?>?]) x = pointX,
num Function(List<num>, [List<Object?>?]) y = pointY}) {
return Link(curve, source, target, x, y);
}