File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -58,17 +58,17 @@ class AmplitudeFlutterPlugin {
58
58
}
59
59
case "setUserId" :
60
60
{
61
- String userId = call.arguments['setUserId' ];
62
- amplitude.setUserId (userId.toJS);
61
+ String ? userId = call.arguments['setUserId' ];
62
+ amplitude.setUserId (userId? .toJS);
63
63
}
64
64
case "getDeviceId" :
65
65
{
66
66
return amplitude.getDeviceId ()? .toDart;
67
67
}
68
68
case "setDeviceId" :
69
69
{
70
- String deviceId = call.arguments['setDeviceId' ];
71
- amplitude.setDeviceId (deviceId.toJS);
70
+ String ? deviceId = call.arguments['setDeviceId' ];
71
+ amplitude.setDeviceId (deviceId? .toJS);
72
72
}
73
73
case "getSessionId" :
74
74
{
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ extension type Amplitude(JSObject _) implements JSObject {
6
6
external void add (JSObject plugin);
7
7
external void track (JSObject event);
8
8
external JSString ? getUserId ();
9
- external void setUserId (JSString userId);
9
+ external void setUserId (JSString ? userId);
10
10
external JSString ? getDeviceId ();
11
- external void setDeviceId (JSString devideId);
11
+ external void setDeviceId (JSString ? devideId);
12
12
external JSNumber ? getSessionId ();
13
13
external void setOptOut (bool enabled);
14
14
external void reset ();
You can’t perform that action at this time.
0 commit comments