is this possible to add shortcut keys?

is there a way to add a shortcut to toggle on and off ( see red box )
like similar animation toggling X-Ray and Shaded mode

Attachments


I have it already.

Attachments


thank you
this is what im looking for

do u mind to share also if have context toggle for edge info ( edit mode )
Area Angle and length

im really looking for this also it will also speed up my workflow
once again thank you for helping

Same than before and Context attributes: active_object.data.
show_extra_edge_length
show_extra_edge_angle
show_extra_face_area
show_extra_face_angle

thank you
i learn the pattern of code