addJsonableProperty_batch method

Future<void> addJsonableProperty_batch(
  1. int propertyKey,
  2. List<Object> property
)

为类型添加jsonable属性

Implementation

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