workaround for null as optional parameter for functions in CanvasRenderingContext2D with CanvasWindingRule
https://code.google.com/p/dart/issues/detail?id=15126