StrokePosition$cast function

StrokePosition? StrokePosition$cast(
  1. dynamic value
)

Implementation

StrokePosition? StrokePosition$cast(value) {
  if (value == StrokePosition.CENTER) return StrokePosition.CENTER;
  if (value == StrokePosition.INSIDE) return StrokePosition.INSIDE;
  if (value == StrokePosition.OUTSIDE) return StrokePosition.OUTSIDE;
  return null;
}