strokeCap static method

StrokeCap? strokeCap(
  1. dynamic value
)

Implementation

static StrokeCap? strokeCap(dynamic value) => switch (value) {
      'round' => StrokeCap.round,
      'butt' => StrokeCap.butt,
      'square' => StrokeCap.square,
      _ => null
    };