addProperty method

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

为类型添加属性

Implementation

Future<void> addProperty(int propertyKey, Ref property) async {
  assert(property is Ref);
  return kMethodChannel.invokeMethod('PlatformService::addProperty', {
    'refId': refId,
    'propertyKey': propertyKey,
    'property': property.refId,
  });
}