I would create a custom container and add properties like id to it I tried doing it like this. what I would like is to create a container which has a unique id assigned to it.
class Tile extends Container
{
late int id;
late int position;
Tile({Key? key}) : super(key: key);
}