setUserId method

void setUserId(
  1. String? userId
)

Implementation

void setUserId(String? userId) async {
  if(userId != null){
    await CoreDb.instance()._writeData({_USER_ID:userId});
  }else{
    await CoreDb.instance()._writeData({_USER_ID:""});
  }
}