setVisibility method

Future<Null> setVisibility(
  1. ResourceType type,
  2. bool shouldShow
)

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);
}