setBottomAccessory static method
Show, update, or hide the bottom accessory (pass null to hide).
Useful to hide the accessory on certain tabs/screens (e.g. call from
onTabSelected, or before pushing a screen that shouldn't show it).
Implementation
static Future<void> setBottomAccessory(CNTabAccessory? accessory) async {
if (!_enabled) return;
await _channel.invokeMethod('setBottomAccessory', {
if (accessory != null) 'bottomAccessory': _accessoryMap(accessory),
});
}