@override String getErrorMessage(dynamic error) { if (error is PlatformException && error.message != null) { return error.message!; } return error.toString(); }