getColor method

Color? getColor(
  1. bool isDay,
  2. bool isDusk
)

Get the background color of the container, representing the time of day

Implementation

Color? getColor(bool isDay, bool isDusk) {
  if (!isDay) {
    return Colors.blueGrey[900];
  }
  if (isDusk) {
    return Colors.orange[400];
  }
  return Colors.blue[200];
}