setWidgetPropertyValue method

  1. @experimental
Future<SetWidgetPropertyValueResult> setWidgetPropertyValue(
  1. int? id, {
  2. FlutterWidgetPropertyValue? value,
})

Set the value of a property, or remove it.

The server will generate a change that the client should apply to the project to get the value of the property set to the new value. The complexity of the change might be from updating a single literal value in the code, to updating multiple files to get libraries imported, and new intermediate widgets instantiated.

Implementation

@experimental
Future<SetWidgetPropertyValueResult> setWidgetPropertyValue(int? id,
    {FlutterWidgetPropertyValue? value}) {
  final Map m = {'id': id};
  if (value != null) m['value'] = value;
  return _call('flutter.setWidgetPropertyValue', m)
      .then(SetWidgetPropertyValueResult.parse);
}