setVisibility method
Implementation
Future<Null> setVisibility(ResourceType type, bool shouldShow) async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent("type", () => type.index);
args.putIfAbsent("should_show", () => shouldShow);
await _channel.invokeMethod('setVisibility', args);
}