build method
Return a Renderable which is to be displayed.
Implementation
@override
Renderable build(WriggleContext context) {
final dialogs = context.readState<List<DialogSurfaceRoute<Object?>>>(
Wriggle.dialogState,
const [],
);
if (dialogs.isEmpty) {
return child;
}
return Stack(
children: [
ConnectedBorderComponent(
borderData: connectedBorder,
child: dialogs.last.child,
),
child,
],
);
}