child method
Widget
child(
- Widget builder(
- BuildContext context,
- BloomVia via,
- TickerProvider vsync,
- Widget child,
- required Widget child,
- Key? key,
Creates an inline reactive widget providing TickerProvider and an isolated static child.
builder: Reactive builder callback receiving BuildContext, BloomVia, TickerProvider, andchild.child: The static subtree to preserve across rebuilds.key: Optional widget key.
Requires:
buildermust be a pure, declarative function.
Ensures:
- Returns a reactive Widget providing TickerProvider with cached
childpreservation.
Examples
composed.vsync.child(
(context, via, vsync, child) => AnimatedPanel(
vsync: vsync,
child: child,
),
child: const StaticComplexForm(),
);
Implementation
@pragma('vm:prefer-inline')
Widget child(
Widget Function(BuildContext context, BloomVia via, TickerProvider vsync,
Widget child)
builder, {
required Widget child,
Key? key,
}) =>
_ComposedVsyncWithChildWidget(
builder: builder,
key: key,
child: child,
);