read static method

ActorMask read(
  1. ActorArtboard artboard,
  2. StreamReader reader,
  3. ActorMask component
)
override

Implementation

static ActorMask read(
    ActorArtboard artboard, StreamReader reader, ActorMask component) {
  ActorLayerEffect.read(artboard, reader, component);
  component._sourceIdx = reader.readId('source');
  component._maskType =
      maskTypeLookup[reader.readUint8('maskType')] ?? MaskType.alpha;

  return component;
}