bar method

Future<void> bar({
  1. required int x,
  2. required int y,
  3. required int width,
  4. int height = 2,
})

Implementation

Future<void> bar({
  required int x,
  required int y,
  required int width,
  int height = 2,
}) async {
  Map<String, dynamic> params = {
    "x": x,
    "y": y,
    "width": width,
    "height": height,
  };
  await methodChannel.invokeMethod<void>('bar', params);
}