createPattern method Null safety

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

Implementation

CanvasPattern? createPattern(Object image, String repetitionType) native;