InflatedChildHandle constructor
InflatedChildHandle({
- required Object id,
- required InflatingRenderObjectMixin<
RenderObject, InflatingParentData< parent,RenderObject> , InflatedChildHandle> - RenderObject? render,
- Widget? widget,
- 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");