Scalar constructor

Scalar([
  1. double val1 = 0.0,
  2. double val2 = 0.0,
  3. double val3 = 0.0,
  4. double val4 = 0.0,
])

Implementation

factory Scalar([double val1 = 0.0, double val2 = 0.0, double val3 = 0.0, double val4 = 0.0]) {
  final p = calloc<cvg.Scalar>()
    ..ref.val1 = val1
    ..ref.val2 = val2
    ..ref.val3 = val3
    ..ref.val4 = val4;
  return Scalar._(p);
}