defaultChildFactory<T extends ChildHandleType> method

T defaultChildFactory<T extends ChildHandleType>({
  1. required Object id,
  2. required InflatingRenderObjectMixin<RenderObject, InflatingParentData<RenderObject>, InflatedChildHandle> parent,
  3. RenderObject? render,
  4. Widget? widget,
})

The default childFactory, returns a base InflatedChildHandle for all types.

Implementation

T defaultChildFactory<T extends ChildHandleType>({
  required Object id,
  required InflatingRenderObjectMixin parent,
  RenderObject? render,
  Widget? widget,
}) {
  return InflatedChildHandle(
    id: id,
    parent: this,
    widget: widget,
    render: render,
  ) as T;
}