line method
Implementation
Future<void> line(
{required int x,
required int y,
required int endX,
required int endY,
int width = 2}) async {
Map<String, dynamic> params = {
"x": x,
"y": y,
"endX": endX,
"endXY": endY,
"width": width,
};
await methodChannel.invokeMethod<void>('line', params);
}