show method
A banner with onTap runs it when tapped, as an iOS notification
opens what it tells of.
Implementation
void show(
String text, {
BannerLevel level = BannerLevel.info,
VoidCallback? onTap,
}) {
if (text.isEmpty) {
return;
}
final message = _BannerMessage(
id: _nextId++,
text: text,
level: level,
onTap: onTap,
);
if (_merge(message)) {
return;
}
_buffer.add(message);
_trimBuffer();
_processQueue();
}