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