Skip to content

Commit

Permalink
remove getFeatureFlagAndPayload type
Browse files Browse the repository at this point in the history
  • Loading branch information
nehemiekoffi committed Nov 17, 2023
1 parent 31c17bc commit a8076cf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/posthog_flutter_method_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,9 @@ class MethodChannelPosthogFlutter extends PosthogFlutterPlatform {
required String key,
}) async {
try {
final Map<String, dynamic>? 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');
Expand Down

0 comments on commit a8076cf

Please sign in to comment.