RoomDimensions class

Represents the dimensions of a scanned room.

Constructors

RoomDimensions.new({required double width, required double height, required double length})
Creates a RoomDimensions object.
const
RoomDimensions.fromJson(Map<String, dynamic> json)
Creates a RoomDimensions from a JSON map.
factory

Properties

floorArea double
Returns the floor area in square meters.
no setter
floorAreaInSqFeet double
Returns the floor area in square feet.
no setter
hashCode int
The hash code for this object.
no setteroverride
height double
The height of the room.
final
heightInFeet double
Returns the height in feet.
no setter
length double
The length (depth) of the room.
final
lengthInFeet double
Returns the length in feet.
no setter
perimeter double
Returns the perimeter in meters.
no setter
perimeterInFeet double
Returns the perimeter in feet.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
volume double
Returns the volume of the room in cubic meters.
no setter
volumeInCuFeet double
Returns the volume in cubic feet.
no setter
width double
The width of the room.
final
widthInFeet double
Returns the width in feet.
no setter

Methods

copyWith({double? length, double? width, double? height}) RoomDimensions
Creates a copy of this dimensions with modified values.
getFormattedFloorArea(MeasurementUnit unit, {int decimals = 2}) String
Returns formatted floor area string in the specified unit.
getFormattedHeight(MeasurementUnit unit, {int decimals = 2}) String
Returns formatted height string in the specified unit.
getFormattedLength(MeasurementUnit unit, {int decimals = 2}) String
Returns formatted length string in the specified unit.
getFormattedPerimeter(MeasurementUnit unit, {int decimals = 2}) String
Returns formatted perimeter string in the specified unit.
getFormattedVolume(MeasurementUnit unit, {int decimals = 2}) String
Returns formatted volume string in the specified unit.
getFormattedWidth(MeasurementUnit unit, {int decimals = 2}) String
Returns formatted width string in the specified unit.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this RoomDimensions to a JSON map.
toString() String
A string representation of this object.
override
toStringWithUnit(MeasurementUnit unit) String
Returns a string representation with the specified unit system.

Operators

operator ==(Object other) bool
The equality operator.
override