open method
Implementation
Future<bool> open(ResourceType type, String id) async {
int rawValue = type.index;
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent("type", () => rawValue);
args.putIfAbsent("id", () => id);
return await _channel.invokeMethod('openResource', args);
}