addJsonableProperty method

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

为类型添加jsonable属性

Implementation

Future<void> addJsonableProperty(int propertyKey, Object property) async {
  assert(property is String ||
      property is int ||
      property is double ||
      property is Map ||
      property is List ||
      property is bool);
  return kMethodChannel.invokeMethod('PlatformService::addJsonableProperty', {
    'refId': refId,
    'propertyKey': propertyKey,
    'property': property,
  });
}