toOffset method Null safety

Offset toOffset()

转换为Offset

Implementation

Offset toOffset() => Offset(x, y);