set method

FabricObject set(
  1. dynamic propNameOrMap, [
  2. dynamic val
])

rect.set('fill', 'red'); rect.set({ strokeWidth: 5, stroke: 'rgba(100,200,200,0.5)' }); rect.set('angle', 15).set('flipY', true);

Implementation

external FabricObject set(dynamic propNameOrMap, [dynamic val]);