Convert to dart:typed_data list from typed array
Replace to double literal from int literal for typed_data list
Correct way for convert to int from double
Convert to canvas.context2D from canvas.context2d. canvas.context2d is deprecated