fromValue static method

LcLayerKind fromValue(
  1. int value
)

Implementation

static LcLayerKind fromValue(int value) => switch (value) {
  0 => LC_LAYER_KIND_UNKNOWN,
  1 => LC_LAYER_KIND_RECTANGLE,
  2 => LC_LAYER_KIND_TEXT,
  3 => LC_LAYER_KIND_IMAGE,
  4 => LC_LAYER_KIND_PATH,
  _ => throw ArgumentError('Unknown value for LcLayerKind: $value'),
};