pluginError static method
Return a request error representing an error that occurred in the plugin.
Implementation
static RequestError pluginError(dynamic exception, String? stackTrace) =>
RequestError(
RequestErrorCode.PLUGIN_ERROR,
exception.toString(),
stackTrace: stackTrace,
);