@@ -81,7 +81,7 @@ class SensorsAnalyticsFlutterPlugin {
8181 Set <SANetworkType >? networkTypes,
8282 int flushInterval = 15000 ,
8383 int flushBulkSize = 100 ,
84- bool enableLog: false ,
84+ bool enableLog = false ,
8585 bool javaScriptBridge = false ,
8686 bool encrypt = false ,
8787 AndroidConfig ? android,
@@ -320,9 +320,7 @@ class SensorsAnalyticsFlutterPlugin {
320320 /// SensorsAnalyticsFlutterPlugin.profileSet({'key1':'value1','key2':'value2'});
321321 ///
322322 static void profileSet (Map <String , dynamic > profileProperties) {
323- if (profileProperties != null ) {
324- profileProperties = {...profileProperties};
325- }
323+ profileProperties = {...profileProperties};
326324 _convertDateTime (profileProperties);
327325 List <dynamic > params = [profileProperties];
328326 _channel.invokeMethod ('profileSet' , params);
@@ -338,9 +336,7 @@ class SensorsAnalyticsFlutterPlugin {
338336 /// SensorsAnalyticsFlutterPlugin.profileSetOnce({'key1':'value1','key2':'value2'});
339337 ///
340338 static void profileSetOnce (Map <String , dynamic > profileProperties) {
341- if (profileProperties != null ) {
342- profileProperties = {...profileProperties};
343- }
339+ profileProperties = {...profileProperties};
344340 _convertDateTime (profileProperties);
345341 List <dynamic > params = [profileProperties];
346342 _channel.invokeMethod ('profileSetOnce' , params);
@@ -422,9 +418,7 @@ class SensorsAnalyticsFlutterPlugin {
422418 /// SensorsAnalyticsFlutterPlugin.registerSuperProperties({'key1':'value1','key2':'value2'});
423419 ///
424420 static void registerSuperProperties (Map <String , dynamic > superProperties) {
425- if (superProperties != null ) {
426- superProperties = {...superProperties};
427- }
421+ superProperties = {...superProperties};
428422 _convertDateTime (superProperties);
429423 List <dynamic > params = [superProperties];
430424 _channel.invokeMethod ('registerSuperProperties' , params);
0 commit comments