closeButton static method
Implementation
static Widget closeButton(String popoverlayName) =>
_PopOverlayWidgetCache.getOrCreate(
'closeButton_$popoverlayName',
() => SInkButton(
onTap: (pos) {
final popContent = PopOverlay.getActiveById(popoverlayName);
if (popContent != null && popContent.shouldMakeInvisibleOnDismiss) {
PopOverlay._makePopOverlayInvisible(popContent);
} else {
PopOverlay.removePop(popoverlayName);
}
},
child: Icon(
Icons.close,
color: Colors.red[100],
),
),
);