@@ -74,13 +74,10 @@ abstract class CustomBoxy extends LayoutInflatingWidget {
7474 }) = _CustomBoxy ;
7575
7676 const CustomBoxy ._({
77- Key ? key,
78- List < Widget > children = const < Widget > [] ,
77+ super . key,
78+ super . children,
7979 required this .childFactory,
80- }) : super (
81- key: key,
82- children: children,
83- );
80+ });
8481
8582 /// Constructs a CustomBoxy with [BoxBoxyDelegate] that can manage both
8683 /// [BoxyChild] and [SliverBoxyChild] children.
@@ -163,15 +160,10 @@ class _CustomBoxy extends CustomBoxy {
163160
164161 /// Constructs a CustomBoxy with a delegate and optional set of children.
165162 const _CustomBoxy ({
166- Key ? key,
163+ super . key,
167164 required this .delegate,
168- List <Widget > children = const < Widget > [],
169- InflatedChildHandleFactory childFactory = CustomBoxy .defaultChildFactory,
170- }) : super ._(
171- key: key,
172- children: children,
173- childFactory: childFactory,
174- );
165+ super .children,
166+ }) : super ._(childFactory: CustomBoxy .defaultChildFactory);
175167
176168 @override
177169 RenderBoxy createRenderObject (BuildContext context) {
@@ -191,15 +183,11 @@ class _BoxCustomBoxy extends CustomBoxy {
191183 final BoxBoxyDelegate delegate;
192184
193185 const _BoxCustomBoxy ({
194- Key ? key,
186+ super . key,
195187 required this .delegate,
196- List <Widget > children = const < Widget > [],
197- InflatedChildHandleFactory childFactory = CustomBoxy .defaultChildFactory,
198- }) : super ._(
199- key: key,
200- children: children,
201- childFactory: childFactory,
202- );
188+ super .children,
189+ super .childFactory = CustomBoxy .defaultChildFactory,
190+ }) : super ._();
203191
204192 @override
205193 RenderBoxy createRenderObject (BuildContext context) {
@@ -219,15 +207,11 @@ class _SliverCustomBoxy extends CustomBoxy {
219207 final SliverBoxyDelegate delegate;
220208
221209 const _SliverCustomBoxy ({
222- Key ? key,
210+ super . key,
223211 required this .delegate,
224- List <Widget > children = const < Widget > [],
225- InflatedChildHandleFactory childFactory = CustomBoxy .defaultChildFactory,
226- }) : super ._(
227- key: key,
228- children: children,
229- childFactory: childFactory,
230- );
212+ super .children,
213+ super .childFactory = CustomBoxy .defaultChildFactory,
214+ }) : super ._();
231215
232216 @override
233217 RenderSliverBoxy createRenderObject (BuildContext context) {
0 commit comments