Usually one or more of the diagnostic usually have a screen record for errors, but only one is recommend to use.
Probably you can anidate multiple diagnostic
final Widget Function(Widget child)? screenRecord;