getIssueColor static method
Returns color which marks the side responsible for a failed call.
Implementation
static Color getIssueColor(BuildContext context, NetLensIssueOrigin origin) {
final bool isDark = Theme.of(context).brightness == Brightness.dark;
return switch (origin) {
NetLensIssueOrigin.frontend =>
isDark ? const Color(0xff4dd0e1) : const Color(0xff00838f),
NetLensIssueOrigin.backend =>
isDark ? const Color(0xffce93d8) : const Color(0xff8e24aa),
NetLensIssueOrigin.network =>
isDark ? const Color(0xff90a4ae) : const Color(0xff546e7a),
};
}