open method

Future<bool> open(
  1. ResourceType type,
  2. String id
)

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