buildChild method
Implementation
@override
Widget buildChild(BuildContext context) {
final child = widget.scrollable
? ListView(children: widget.children)
: Column(
mainAxisSize: MainAxisSize.min,
children: widget.children,
);
if (widget.cache) {
return PopScope(
onPopInvoked: (bool didPop) async {
// Save the settings
await apply();
},
child: child,
);
}
return child;
}