requireValidDimension
Ensure dimension such as corner radius and border width are 0 or greater
Parameters
dimension
the dimension to validate
Throws
if dimension is less than 0
Ensure dimension such as corner radius and border width are 0 or greater
the dimension to validate
if dimension is less than 0