From 9cc43aa4d6b107b94b45097703cc32b241a65006 Mon Sep 17 00:00:00 2001 From: ShiCheng Lu Date: Fri, 4 Oct 2024 13:28:58 -0400 Subject: [PATCH] return error on PlatformException (#70) --- lib/flutter_radar.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/flutter_radar.dart b/lib/flutter_radar.dart index 72d0696..bf8b7d7 100644 --- a/lib/flutter_radar.dart +++ b/lib/flutter_radar.dart @@ -510,6 +510,7 @@ class Radar { return await _channel.invokeMethod('getVerifiedLocationToken'); } on PlatformException catch (e) { print(e); + return {'error': e.code}; } }