Invoked when error occurs in transport between dart and platform.
@override void onError(Exception exception) { throw UnimplementedError( 'onError(Exception exception) has not been implemented.'); }