logColor property
Color
get
logColor
Implementation
Color get logColor {
Color subTitleColor = Colors.black;
if (logLevel == LogLevel.error) {
if (logType == LogObjectType.api_cache) {
subTitleColor = Colors.red.shade200;
} else {
subTitleColor = Colors.red;
}
} else if (logLevel == LogLevel.warning) {
if (logType == LogObjectType.api_cache) {
subTitleColor = Colors.orange.shade200;
} else {
subTitleColor = Colors.orange;
}
} else if (logLevel == LogLevel.success) {
if (logType == LogObjectType.route) {
subTitleColor = Colors.blue;
} else if (logType == LogObjectType.monitor_network) {
subTitleColor = Colors.cyan;
} else {
if (logType == LogObjectType.api_cache) {
subTitleColor = Colors.green.shade200;
} else {
subTitleColor = Colors.green;
}
}
}
return subTitleColor;
}