Space class
Model for a Space
- Implementers
Constructors
-
Space({required String id, required String name, required LinkMap links, List<
Grid> ? embeddedGrids, String? key, String? category, Color? color, String? icon, String? iconSet}) -
Creates a new Space Model with a certain id and name
gridUris
is List<GridUri> pointing to the Grids contained in this Space -
Space.fromJson(Map<
String, dynamic> json) -
Deserializes
json
into a Space Objectfactory
Properties
- category → String?
-
The category this space belongs to
final
- color → Color?
-
Color of this space
final
-
embeddedGrids
→ List<
Grid> ? -
A List of
Grid
s that are embedded in this Spacefinal - hashCode → int
-
The hash code for this object.
no setteroverride
- icon → String?
-
Icon name of this space. This should also take into account iconSet in order to find the correct Icon to display
final
- iconSet → String?
-
IconSet that icon is from
final
- id → String
-
Id of this space
final
- key → String?
-
The key of this space
final
- links → LinkMap
-
Links for relevant actions for this Space
final
- name → String
-
Name of this space
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this Space into a json Map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override