How to use logic with flutter/dart constants
I want to change the color of a text widget based on a condition. If the variable isDark is true, change color to black, else change color to white. Using the code: ListWidget(BuildContext context) => listItems .map( (e) => Center(…