I agree with you. Although I may not have kids, but I have siblings and nephews. As much as possible I gamble when I'm in my room or I'm alone. I do not let kids see me gamble. Kids are very curious about what they see and always ask about it. So, it's better for them to not be exposed with gambling activities as it would always affect or influence their behavior and attitude. Keep gambling out of kids sight, and if they see, have an open communication about the potential harm of gambling.
Gambling is not as dangerous as you might imagine, the behavior of gamblers who cannot control their emotions can have a dangerous impact on the people around them. Keeping gambling activities away from children needs to be done in order to prevent negative things that can damage their mental and emotional state. There comes a time when they have integrity with gambling when they are able to make their own money or are already adults.
Parents need to keep gambling away from their children until they grow up, after that they can determine their attitude when they are able to control their emotions and also make their own money.
I see your point it should be done the right way, keeping your gambling participation away from your kids is also keeping them out from any awareness on gambling while they are still at their young age, it's safe to avoid them getting any interest though there's no assurance that you can completely prevent them as growing up there's chance that they will cross the same path when someone else introduce this venue and give them ideas how things works around.
But, in terms of influencing your kids, that's very important not to allow them to learn things especially with their young minds they will think that's okay when they see you gambling and if they notice that you are enjoying.