RoomData class
Represents the complete scanned data of a single room.
Constructors
-
RoomData.new({RoomDimensions? dimensions, required List<
WallData> walls, required List<ObjectData> objects, required List<OpeningData> doors, required List<OpeningData> windows, required List<OpeningData> openings, WallData? floor, WallData? ceiling}) -
Creates a RoomData.
const
-
RoomData.fromJson(Map<
String, dynamic> json) -
Creates a RoomData from a JSON map.
factory
Properties
- ceiling → WallData?
-
The detected ceiling surface, if available.
final
- dimensions → RoomDimensions?
-
The estimated dimensions of the room.
This may be null if the dimensions could not be determined.
final
-
doors
→ List<
OpeningData> -
A list of all detected doors in the room.
final
- floor → WallData?
-
The detected floor surface, if available.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
objects
→ List<
ObjectData> -
A list of all detected objects in the room.
final
-
openings
→ List<
OpeningData> -
A list of all detected openings in the room.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
walls
→ List<
WallData> -
A list of all detected wall surfaces in the room.
final
-
windows
→ List<
OpeningData> -
A list of all detected windows in the room.
final
Methods
-
copyWith(
{RoomDimensions? dimensions, List< WallData> ? walls, List<ObjectData> ? objects, List<OpeningData> ? doors, List<OpeningData> ? windows, List<OpeningData> ? openings, WallData? floor, WallData? ceiling}) → RoomData - Creates a copy of this room data with modified values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this RoomData to a JSON map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override