WindowConfig constructor

WindowConfig({
  1. String? id = "default",
  2. String? entry = "main",
  3. String? route,
  4. Function? callback,
  5. bool? autosize,
  6. int? width,
  7. int? height,
  8. int? x,
  9. int? y,
  10. int? format,
  11. GravityType? gravity,
  12. int? type,
  13. bool? clickable,
  14. bool? draggable,
  15. bool? focusable,
  16. bool? immersion,
  17. bool? visible,
})

we need this for update, so must wihtout default value

Implementation

WindowConfig({
  this.id = "default",
  this.entry = "main",
  this.route,
  this.callback,
  this.autosize,
  this.width,
  this.height,
  this.x,
  this.y,
  this.format,
  this.gravity,
  this.type,
  this.clickable,
  this.draggable,
  this.focusable,
  this.immersion,
  this.visible,
}) : assert(
          callback == null ||
              PluginUtilities.getCallbackHandle(callback) != null,
          "callback is not a static function");