Remove admin dashboard items per user role

Hi, we're looking to remove some dashboard items for a specific user role, we've found some info here: https://codex.wordpress.org/Dashboard_Widgets_API

How can we hide certain items based on user role?
Thanks!