maybeFindMessenger static method
Implementation
static DrawerLayerData? maybeFindMessenger(BuildContext context,
[bool root = false]) {
var data = Data.maybeFindMessenger<DrawerLayerData>(context);
if (root) {
while (data?.parent != null) {
data = data!.parent;
}
}
return data;
}