createPattern method Null safety

CanvasPattern? createPattern (
  1. dynamic image,
  2. String repetitionType
)

Implementation

CanvasPattern? createPattern(
    /*CanvasImageSource*/ image, String repetitionType) native;