ARNode constructor

ARNode({
  1. required NodeType type,
  2. required String uri,
  3. String? name,
  4. Vector3? position,
  5. Vector3? scale,
  6. Vector4? rotation,
  7. Vector3? eulerAngles,
  8. Matrix4? transformation,
  9. Map<String, dynamic>? data,
})

Implementation

ARNode({
  required this.type,
  required this.uri,
  String? name,
  Vector3? position,
  Vector3? scale,
  Vector4? rotation,
  Vector3? eulerAngles,
  Matrix4? transformation,
  Map<String, dynamic>? data,
})  : name = name ?? UniqueKey().toString(),
      transformNotifier = ValueNotifier(createTransformMatrix(
          transformation, position, scale, rotation, eulerAngles)),
      data = data ?? null;