toggleMore method
Toggles the moreOpened and populates the _moreEntry
.
Implementation
void toggleMore() {
if (moreOpened.isFalse) {
_moreEntry = OverlayEntry(
builder:
(_) => MessageFieldMore(
this,
onDismissed: () {
_moreEntry?.remove();
_moreEntry = null;
},
),
);
router.overlay!.insert(_moreEntry!);
}
moreOpened.toggle();
}