ArCoreNode constructor

ArCoreNode({
  1. ArCoreShape? shape,
  2. ArCoreImage? image,
  3. String? name,
  4. Vector3? position,
  5. Vector3? scale,
  6. Vector4? rotation,
  7. List<ArCoreNode>? children = const [],
})

Implementation

ArCoreNode({
  this.shape,
  this.image,
  String? name,
  Vector3? position,
  Vector3? scale,
  Vector4? rotation,
  this.children = const [],
})  : name = name ?? random_string.randomString(),
      position = position != null ? ValueNotifier(position) : null,
      scale = scale != null ? ValueNotifier(scale) : null,
      rotation = rotation != null ? ValueNotifier(rotation) : null,
      assert(!(shape != null && image != null));