Skip to content

Commit

Permalink
Change type declaration from String to String? in AmplitudeFlutte…
Browse files Browse the repository at this point in the history
…rPlugin` for `setUserId` (#113)
  • Loading branch information
danielvestergaard authored Jun 14, 2022
1 parent b0c9a8b commit 1e73eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/amplitude_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AmplitudeFlutterPlugin {
}
case "setUserId":
{
String userId = args['userId'] ?? null;
String? userId = args['userId'] ?? null;
bool startNewSession = args['startNewSession'] ?? false;
return amplitude.setUserId(userId, startNewSession);
}
Expand Down

0 comments on commit 1e73eed

Please sign in to comment.