toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  var map = Map<String, dynamic>();
  // map["id"] = id;
  map["entry"] = entry;
  map["route"] = route;
  // find the callback id from callback function
  map["callback"] = callback != null
      ? PluginUtilities.getCallbackHandle(callback!)?.toRawHandle()
      : null;

  map["autosize"] = autosize;

  map["width"] = width;
  map["height"] = height;
  map["x"] = x;
  map["y"] = y;

  map["format"] = format;
  map["gravity"] = gravity?.toInt();
  map["type"] = type;

  map["clickable"] = clickable;
  map["draggable"] = draggable;
  map["focusable"] = focusable;

  map["immersion"] = immersion;

  map["visible"] = visible;

  return map;
}