DashboardItem class
A dashboard consists of DashboardItems. DashboardItem holds item identifier(identifier) and layoutData.
DashboardItem hold items layout data and identifier.
Look ItemLayout for more information about layout data.
Item losses may occur in identifier conflicts. It should be noted that they are unique.
Constructors
- DashboardItem({int? startX, int? startY, required int width, required int height, int minWidth = 1, int minHeight = 1, int? maxHeight, int? maxWidth, required String identifier})
- The constructor create a ItemLayout with given parameters.
-
DashboardItem.fromMap(Map<
String, dynamic> map) -
Converts json encodable Map to items to create from storage.
factory
- DashboardItem.withLayout(String identifier, ItemLayout layoutData)
- Create DashboardItem with layoutData and identifier.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier ↔ String
-
It is the items identifier. This is necessary both when creating
the layout and storing it in memory, and this identifier helps
determine the Widget that
itemBuilder
will return.getter/setter pair - layoutData ↔ ItemLayout
-
It contains the location and dimensions of the Item on the Dashboard.
getter/setter pair
- 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
-
toMap(
) → Map< String, dynamic> - Converts items to json encodable Map to store their layout.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited