const ObstacleWidget({required this.position, required this.size, required this.assetPath, Key? key}) : super(key: key);