InflatedChildHandle constructor

InflatedChildHandle({
  1. required Object id,
  2. required InflatingRenderObjectMixin<RenderObject, InflatingParentData<RenderObject>, InflatedChildHandle> parent,
  3. RenderObject? render,
  4. Widget? widget,
  5. Element? context,
})

Constructs a child handle.

Implementation

InflatedChildHandle({
  required this.id,
  required InflatingRenderObjectMixin parent,
  RenderObject? render,
  Widget? widget,
  Element? context,
})  : _parent = parent,
      _render = render,
      _widget = widget,
      _context = context,
      assert((render != null) != (widget != null),
          'Either render or widget should be provided'),
      assert(render == null || context != null,
          "If render is not null, context can't be null");