close method

Future<bool?> close({
  1. bool force = false,
})

Implementation

Future<bool?> close({bool force = false}) async {
  // return await FloatwingPlugin().closeWindow(id, force: force);
  return await _channel.invokeMethod("window.close", {
    "id": id,
    "force": force,
  }).then((v) {
    // remove the window from plugin
    FloatwingPlugin().windows.remove(id);
    return v;
  });
}