Skip to Content

InnerFloor

Represents a floor within a multi-floor building.

Constructors

InnerFloor.new

InnerFloor.new(String key, int index, int level, String title, bool isDefault)

Creates an InnerFloor with the given properties. const

InnerFloor.fromJson

InnerFloor.fromJson(Map<String, dynamic> json, String defaultKey)

factory

Properties

PropertyTypeDescription
indexintOrdinal index of the floor (used for ordering). (final)
isDefaultboolWhether this is the default floor shown when the building loads. (final)
keyStringUnique key identifying this floor. (final)
levelintPhysical level number (e.g. 0 for ground, 1 for first floor). (final)
nameStringAlias for title. (no setter)
titleStringDisplay name of the floor. (final)

Methods

toJson

toJson() → Map<String, dynamic>
Last updated on