optInForErrorLogger method
Registers the platform to receive error logging events from the SDK.
This method should be implemented to set up the necessary listeners for SDK error logging on the native platform.
Implementation
@override
Future<void> optInForErrorLogger() async {
try {
await methodChannel.invokeMethod('optInForErrorLogger');
} on PlatformException catch (e) {
log("Error opting in for event logger: ${e.message}");
rethrow; // Re-throw the exception to be handled in Flutter.
}
}