String modeStatus(bool status, String mode) { if (status == true) { return '+$mode'; } if (status == false) { return '-$mode'; } return ''; }