Traffic-source vocabulary with the Traffic OS chart colors.
These are categorical data colors, not theme tokens: they stay the same across palettes so charts remain comparable.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
categories(
BuildContext context) → List< NmCategory> - All sources as chart categories.
-
colorOf(
String id, {Brightness brightness = Brightness.light}) → Color -
Color of a source id for
brightness; unknown ids get a stable fallback. Every color exceptdirectis the same in dark mode. -
label(
BuildContext context, String id) → String - Localized label; unknown ids pass through.
Constants
- ai → const String
- AI answers (ChatGPT, Alice, Perplexity …).
-
colors
→ const Map<
String, Color> -
Source data colors on light backgrounds; colorOf adapts
directfor dark ones. - direct → const String
- Direct and brand visits.
- directDark → const Color
-
directon dark backgrounds (the light#303F49would vanish). - dzen → const String
- Dzen (blog platform) traffic.
- google → const String
- Google search.
-
ids
→ const List<
String> - Every built-in source, in chart order.
- links → const String
- Links from other sites.
- maps → const String
- Maps and local listings.
- telegram → const String
- Telegram channels and chats.
- yandex → const String
- Yandex search.