Skip to content

Commit

Permalink
Fix Lint warning (initialization to null) (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmerlet-at-didomi authored Dec 13, 2024
1 parent b714fc8 commit 294aa6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/didomi_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -337,16 +337,16 @@ class DidomiSdk {
static Future<void> clearUser() async => await _channel.invokeMethod("clearUser");

/// Set user information
static Future<void> setUser(String organizationUserId, [bool? isUnderage = null]) async =>
static Future<void> setUser(String organizationUserId, [bool? isUnderage]) async =>
await _channel.invokeMethod("setUser", {"organizationUserId": organizationUserId, "isUnderage": isUnderage});

/// Set user information and check for missing consent
static Future<void> setUserAndSetupUI(String organizationUserId, [bool? isUnderage = null]) async =>
static Future<void> setUserAndSetupUI(String organizationUserId, [bool? isUnderage]) async =>
await _channel.invokeMethod("setUserAndSetupUI", {"organizationUserId": organizationUserId, "isUnderage": isUnderage});

/// Set user information with authentication
static Future<void> setUserWithAuthParams(UserAuthParams userAuthParams,
[List<UserAuthParams>? synchronizedUsers, bool? isUnderage = null]) async {
[List<UserAuthParams>? synchronizedUsers, bool? isUnderage]) async {
Map<String, dynamic> jsonUserAuthParams = userAuthParams.toJson();
List<Map<String, dynamic>>? jsonSynchronizedUsers = synchronizedUsers?.map((user) => user.toJson()).toList();
return await _channel.invokeMethod("setUserWithAuthParams", {
Expand All @@ -358,7 +358,7 @@ class DidomiSdk {

/// Set user information with authentication and check for missing consent
static Future<void> setUserWithAuthParamsAndSetupUI(UserAuthParams userAuthParams,
[List<UserAuthParams>? synchronizedUsers, bool? isUnderage = null]) async {
[List<UserAuthParams>? synchronizedUsers, bool? isUnderage]) async {
Map<String, dynamic> jsonUserAuthParams = userAuthParams.toJson();
List<Map<String, dynamic>>? jsonSynchronizedUsers = synchronizedUsers?.map((user) => user.toJson()).toList();
return await _channel.invokeMethod("setUserWithAuthParamsAndSetupUI", {
Expand Down

0 comments on commit 294aa6b

Please sign in to comment.