From a8076cf1f87055424702c36998510f2f80cf12c8 Mon Sep 17 00:00:00 2001 From: Nehemie KOFFI Date: Fri, 17 Nov 2023 08:37:27 +0000 Subject: [PATCH] remove getFeatureFlagAndPayload type --- lib/posthog_flutter_method_channel.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/posthog_flutter_method_channel.dart b/lib/posthog_flutter_method_channel.dart index fa1e6f2..3ffd256 100644 --- a/lib/posthog_flutter_method_channel.dart +++ b/lib/posthog_flutter_method_channel.dart @@ -175,12 +175,9 @@ class MethodChannelPosthogFlutter extends PosthogFlutterPlatform { required String key, }) async { try { - final Map? result = - await methodChannel.invokeMethod('getFeatureFlagAndPayload', { + return await methodChannel.invokeMethod('getFeatureFlagAndPayload', { 'key': key, }); - - return result; } on PlatformException catch (exception) { if (kDebugMode) { print('Exeption on getFeatureFlagAndPayload(): $exception');