updateProperty method

  1. @protected
void updateProperty(
  1. String name, {
  2. dynamic newValue,
})
override

Updates the property named name with a newValue.

The name must be the same used in this.toMap()

Implementation

@protected
void updateProperty(String name, {dynamic newValue}) {
  TouchBarPlatform.instance.setTouchBarItem(
    id: this.id,
    type: this.type,
    dataChanges: {
      name: newValue,
    },
  );
}