line method

Future<void> line({
  1. required int x,
  2. required int y,
  3. required int endX,
  4. required int endY,
  5. int width = 2,
})

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);
}