addProperty_batch method

Future<void> addProperty_batch(
  1. int propertyKey,
  2. List<Ref> property
)

为类型添加属性

Implementation

Future<void> addProperty_batch(int propertyKey, List<Ref> property) async {
  assert(property is List<Ref>);
  return kMethodChannel.invokeMethod(
    'PlatformService::addProperty_batch',
    [
      for (int i = 0; i < this.length; i++)
        <String, dynamic>{
          'refId': this[i].refId,
          'propertyKey': propertyKey,
          'property': property[i].refId,
        }
    ],
  );
}