Tile class
A single tile in the mosaic. The placement and size of the tile are configurable.
Constructors
-
Tile({Input<
int> ? height, Input<Widget> ? widget, Input<int> ? width, Input<int> ? xPos, Input<int> ? yPos}) -
Creates a new Tile.
heightThe height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.widgetThe informational widget contained in the tile. For example an XyChart.widthThe width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.xPosThe zero-indexed position of the tile in grid blocks relative to the left edge of the grid. Tiles must be contained within the specified number of columns. x_pos cannot be negative.yPosThe zero-indexed position of the tile in grid blocks relative to the top edge of the grid. y_pos cannot be negative.const -
Tile.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
height
→ Input<
int> ? -
The height of the tile, measured in grid blocks. Tiles must have a minimum height of 1.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
widget
→ Input<
Widget> ? -
The informational widget contained in the tile. For example an XyChart.
final
-
width
→ Input<
int> ? -
The width of the tile, measured in grid blocks. Tiles must have a minimum width of 1.
final
-
xPos
→ Input<
int> ? -
The zero-indexed position of the tile in grid blocks relative to the left edge of the grid. Tiles must be contained within the specified number of columns. x_pos cannot be negative.
final
-
yPos
→ Input<
int> ? -
The zero-indexed position of the tile in grid blocks relative to the top edge of the grid. y_pos cannot be negative.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited