getColor method

Color? getColor(
  1. AutonomyCell cell
)

Gets the color for a given AutonomyCell.

Implementation

Color? getColor(AutonomyCell cell) => switch(cell) {
	AutonomyCell.destination => Colors.green,
	AutonomyCell.obstacle => Colors.black,
	AutonomyCell.path => Colors.blueGrey,
	AutonomyCell.empty => Colors.white,
	AutonomyCell.marker => Colors.red,
	AutonomyCell.rover => Colors.transparent,
};