writeUserId method Null safety

Future writeUserId(
  1. dynamic userId
)
override

Implementation

Future writeUserId(dynamic userId) async {
  if (userId == null) {
    return;
  }

  if ("$userId".isEmpty) {
    return;
  }

  return await AuthManager.storage.write(key: _KEY_USER_ID, value: "$userId");
}