ArCoreNode constructor
ArCoreNode({
- ArCoreShape? shape,
- ArCoreImage? image,
- String? name,
- Vector3? position,
- Vector3? scale,
- Vector4? rotation,
- 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));