EmojiLayerData.fromMap constructor

EmojiLayerData.fromMap(
  1. Layer layer,
  2. Map<String, dynamic> map
)

Factory constructor for creating an EmojiLayerData instance from a Layer and a map.

Implementation

factory EmojiLayerData.fromMap(Layer layer, Map<String, dynamic> map) {
  /// Constructs and returns an EmojiLayerData instance with properties
  /// derived from the layer and map.
  return EmojiLayerData(
    flipX: layer.flipX,
    flipY: layer.flipY,
    enableInteraction: layer.enableInteraction,
    offset: layer.offset,
    rotation: layer.rotation,
    scale: layer.scale,
    emoji: map['emoji'],
  );
}