createPortal method

Future<String> createPortal(
  1. String portalId, {
  2. String? parentViewId,
  3. Map<String, dynamic>? props,
  4. int? index,
})

Create a portal container with the specified ID and properties

Implementation

Future<String> createPortal(String portalId, {
  String? parentViewId,
  Map<String, dynamic>? props,
  int? index,
}) async {
  await isReady;
  return _vdom.createPortal(portalId,
    parentViewId: parentViewId ?? 'root',
    props: props ?? {},
    index: index ?? 0);
}