MPBuilding class
A MapsIndoors geographical entity. A MPBuilding is contained within a MPVenue and contains a number of MPFloors.
Properties
- address → String
-
Get the building's address
no setter
- administrativeId → String
-
final
-
aliases
→ List<
String> -
Get a list of aliases for the building
no setter
- bounds → MPBounds?
-
Get the building's bounds
no setteroverride
- buildingId → String
-
Get the building's id value
no setter
- externalId → String?
-
final
- floorCount → int
-
Get the number of MPFloors in the building
no setter
-
floors
→ List<
MPFloor> -
Get a list of the floors in the building
no setter
- geometry → MPPolygon
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → MPBuildingId
-
final
- initialFloorIndex → int
-
Get the default floor index
no setter
- isPoint → bool
-
Inherited from MPEntity, a building's geometry is never a MPPoint
no setteroverride
- name → String
-
Get the building's name
no setter
- position → MPPoint
-
Get the position of the building, this will correspond to the building's anchor point
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- venueId → String
-
final
Methods
-
contains(
MPPoint point) → Future< bool?> -
Check whether the building's geometry contains the
point
-
getField(
String? key) → MPDataField? - Fetch a custom field saved on the building
-
getFloorByIndex(
int floorIndex) → MPFloor? -
Fetch a floor by providing its
floorIndex
-
hasFloorIndex(
int floorIndex) → bool -
Check whether the building contains a floor with the
floorIndex
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the MPBuilding to a JSON representation that can be parsed by the MapsIndoors Platform SDK
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic json) → MPBuilding? - Attempts to build a MPBuilding from a JSON object, this method will decode the object if needed