toString method
override
A string representation of this object.
Some classes have a default textual representation,
often paired with a static parse function (like int.parse).
These classes will provide the textual representation as
their string representation.
Other classes have no meaningful textual representation
that a program will care about.
Such classes will typically override toString to provide
useful information when inspecting the object,
mainly for debugging or logging.
Implementation
@override
String toString() => switch (rawValue) {
1 => 'RuntimeEventType.mapCameraWillChange',
2 => 'RuntimeEventType.mapCameraIsChanging',
3 => 'RuntimeEventType.mapCameraDidChange',
4 => 'RuntimeEventType.mapStyleLoaded',
5 => 'RuntimeEventType.mapLoadingStarted',
6 => 'RuntimeEventType.mapLoadingFinished',
7 => 'RuntimeEventType.mapLoadingFailed',
8 => 'RuntimeEventType.mapIdle',
9 => 'RuntimeEventType.mapRenderError',
10 => 'RuntimeEventType.mapRenderFrameStarted',
11 => 'RuntimeEventType.mapRenderFrameFinished',
12 => 'RuntimeEventType.mapRenderMapStarted',
13 => 'RuntimeEventType.mapRenderMapFinished',
14 => 'RuntimeEventType.mapStyleImageMissing',
15 => 'RuntimeEventType.mapTileAction',
16 => 'RuntimeEventType.mapSourceChanged',
17 => 'RuntimeEventType.offlineRegionStatusChanged',
18 => 'RuntimeEventType.offlineRegionResponseError',
19 => 'RuntimeEventType.offlineRegionTileCountLimitExceeded',
20 => 'RuntimeEventType.mapGlyphsRequested',
21 => 'RuntimeEventType.mapGlyphsLoaded',
22 => 'RuntimeEventType.mapGlyphsError',
23 => 'RuntimeEventType.mapSpriteRequested',
24 => 'RuntimeEventType.mapSpriteLoaded',
25 => 'RuntimeEventType.mapSpriteError',
_ => 'RuntimeEventType($rawValue)',
};