createSampler method Null safety

Sampler? createSampler()

Implementation

Sampler? createSampler() native;