toString method

  1. @override
String toString()
override

Returns the error code string for cross-SDK compatibility.

This enables seamless use of the enum in string contexts and maintains backward compatibility with code expecting string values.

Implementation

@override
String toString() => code;