categorize method

Future<Null> categorize(
  1. ResourceType type,
  2. bool shouldCategorize
)

Implementation

Future<Null> categorize(ResourceType type, bool shouldCategorize) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent("type", () => type.index);
  args.putIfAbsent("should_categorize", () => shouldCategorize);
  await _channel.invokeMethod('categorize', args);
}