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 < length; i++)
        <String, dynamic>{
          '__this__': this[i],
          'propertyKey': propertyKey,
          'property': property[i],
        }
    ],
  );
}