toggle static method

Future<bool> toggle({
  1. bool? hide,
  2. StatusBarAnimation? animation,
})

Implementation

static Future<bool> toggle(
    {bool? hide, StatusBarAnimation? animation}) async {
  return await _channel.invokeMethod('toggleStatusBar', {
    'hide': hide ?? false,
    'animation': _getAnimation(animation),
  });
}